Silk Road forums

Discussion => Security => Topic started by: samesamebutdifferent on April 08, 2013, 12:23 pm

Title: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: samesamebutdifferent on April 08, 2013, 12:23 pm
I am having an issue with GPG, when I highlight the text in text editor ready to encrypt the public key of the person I want to send the message too is not showing in 'choose recipients' however when I open GPG keychain access the key is there just fine.

Before some smart arse flames for for using a mac I've heard it all before so save it  ;) but seriously if anyone has any ideas why this is happening I would really appreciate some assistance.

I have had this issue before and eventually gave up trying to encrypt for the intended recipient but that's not an option on this occasion so any help will be much appreciated.

Cheers.
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: blackflash8686 on April 08, 2013, 12:48 pm
hey same, first off i appreciate the work you do here in the forums. secondly i have a mac and i encounered the same problem. I dont know why it happens but i got it to work by trying these methods in any order one at a time or whatever you want

1. try turning off your wirless and resetting your internet closing gpg and re opening it
2. open a text edit and see if you can encrypt from there and transfer it to the message
3.if you have gpg set up through apple mail trying  using that to encrypt and moving it to the message.
4. go to system preferences  open gpgservices and try changing the key server then go to the gpg key chain access and click update to key server.
5. reset the computer and open text edit type your message and try to encrypt


 i did all these things multiple times and sometimes it just pops back up. Its a pain in the ass and i dont understand it myself but I read a post on the gpg website that someone else had this problem and they suggested them to download the nightly build. i think its a bug.,, but restarting the internet or the computer and immediately trying works sometimes for me.
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: Wadozo on April 08, 2013, 12:52 pm
SSBD, Here is a tutorial by Guru which helps with a lot of problems for those using a Mac.

You would be a lot better off using Gpg4usb, which works on Windows, Mac and Linux OS.

Download link  - http://gpg4usb.cpunk.de/download.html

Tutorial by astor - http://32yehzkk7jflf6r2.onion/gpg4usb/

It's a great piece of software, simple yet robust.


This is a tutorial written by former member Guru that should help you.  :)


This is a known issue with the standard build. What you want to do is install the latest nightly build, per the following instructions (originally written by Guru)

GPGTools is highly version dependent -- depending on which version of OS X
you have, it may or may not work as expected.  If you have Leopard (10.5)
then you're pretty much out of luck. Your only option then will be using
the command-line.

If you have Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8), the
following instructions should be sufficient to allow you to get up and
running.

Download and install GPGTools: http://nightly.gpgtools.org/GPGTools_Installer-trunk.dmg

Once you have installed GPGTools,  what you want to do is to go into
System Preferences --> Keyboard --> Services.

Scroll down until you find the following entries. Be sure to put a check
mark in the boxes to activate each keyboard shortcut.

Keyboard shortcuts:

OpenPGP: Decrypt Selection:             Shift-Command-D

OpenPGP: Encrypt Selection:             Shift-Command-E

OpenPGP: Import Key from Selection:     Shift-Command-I

OpenPGP: Insert My Fingerprint:         Shift-Command-F

OpenPGP: Insert My Key:                 Shift-Command-K

OpenPGP: Sign Selection:                Shift-Command-R

OpenPGP: Verify Signature of Selection: Shift-Control-V

Remember, these shortcuts only operate on highlighted or selected text.

N.B.: To properly be able to import PGP into GPGChain (via TextEdit) you
need to change the default on TextEdit from .rtf to plain text. You can do
that through the Format menu, or you can go through the main configuration
menu, accessible by using Command-comma. Ensure the plain text radio button
is selected.

Also ensure that the following are UNCHECKED in TextEdit preferences:
smart quotes, smart dashes, smart links.

To select text within TextEdit, use Command-A to highlight the entire
document, or use your mouse to selection the section that you want to
verify/sign/encrypt/decrypt. It is highly recommended that you use only
plain-text, as opposed to Rich Text (.rtf) format. Use Command-comma to
bring up Preferences and ensure that the plain text radio button is
checked.

Once your text is highlighted in TextEdit, (by pressing Comand-A) you then
encrypt using Shift-Command-E. You will then be presented with a list of
keys to encrypt to, that you have added to your PGP keyring:

Other Commands You May Need:
============================

OpenPGP: Decrypt File:                   Control-Command-D

OpenPGP: Encrypt File:                   Control-Command-E

OpenPGP: Sign File:                      Control-Command-S

OpenPGP: Verify Signature of File:       Control-Command-V


Once you have setup these shortcuts, you can begin using GPG.

To encrypt a message to someone using GPG, you first need a copy of the
recipient's PGP public key.

Once you have located someone's PGP public key, you should copy and paste
it into Text Edit. Save the PGP key to a file; you can call the file,
import.asc (or import.txt), for example. This saved file will usually be
found in the Documents folder.

Launch GPG Keychain Access from the Applications folder. click on the
Import icon in the upper left hand corner. GPG Keychain Access will then
prompt you for the name of the file which contains the key to import. It
will usually show you a list of files in the Documents folder. Click on the
file named import.asc (or import.txt), and click ok. The PGP public key
will then be imported into your PGP keyring.

To encrypt a message to a person, the message must be contained in a
TextEdit document. Use Command-A to highlight the entire document. Then
use Shift-Command-E to encrypt. GPG will pop-up a list of public keys in
your PGP keyring. Each key will have a little checkbox beside it which you
can check, to select that particular key. If you were encrypting a message
to me, you would put a check in the box beside my PGP key (Guru@SR).

When you click on OK, the plaintext (unencrypted) message in TextEdit will
be replaced with the encrypted message. You can then copy and paste the
encrypted message to enter it into a form on Silk Road, or anywhere else
that it needs to go.

To decrypt a message sent to you by other people, you need to copy that
message to the clipboard, and paste it into a Text Edit document. Again use
Command-A to highlight all the encrypted message. Then use Shift-Command-D
to decrypt the message. If the message is encrypted to your PGP public key,
you will be prompted to enter your passphrase. Once the correct passphrase
has been entered, and you click OK, then the message will be decrypted,
and the decrypted text will be placed in the Text Edit document, replacing
the encrypted message that was there previously.
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: samesamebutdifferent on April 08, 2013, 01:01 pm
hey same, first off i appreciate the work you do here in the forums. secondly i have a mac and i encounered the same problem. I dont know why it happens but i got it to work by trying these methods in any order one at a time or whatever you want

1. try turning off your wirless and resetting your internet closing gpg and re opening it
2. open a text edit and see if you can encrypt from there and transfer it to the message
3.if you have gpg set up through apple mail trying  using that to encrypt and moving it to the message.
4. go to system preferences  open gpgservices and try changing the key server then go to the gpg key chain access and click update to key server.
5. reset the computer and open text edit type your message and try to encrypt


 i did all these things multiple times and sometimes it just pops back up. Its a pain in the ass and i dont understand it myself but I read a post on the gpg website that someone else had this problem and they suggested them to download the nightly build. i think its a bug.,, but restarting the internet or the computer and immediately trying works sometimes for me.

Nice one thanks, I'll give some of those a go and see what happens, I read the blog re the nightly build too and it didn't fix it, I find it strange this can just happen periodically for some keys and not others.

Thanks for taking the time to reply  :)
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: samesamebutdifferent on April 08, 2013, 01:06 pm
SSBD, Here is a tutorial by Guru which helps with a lot of problems for those using a Mac.

You would be a lot better off using Gpg4usb, which works on Windows, Mac and Linux OS.

Download link  - http://gpg4usb.cpunk.de/download.html

Tutorial by astor - http://32yehzkk7jflf6r2.onion/gpg4usb/

It's a great piece of software, simple yet robust.


This is a tutorial written by former member Guru that should help you.  :)


This is a known issue with the standard build. What you want to do is install the latest nightly build, per the following instructions (originally written by Guru)

GPGTools is highly version dependent -- depending on which version of OS X
you have, it may or may not work as expected.  If you have Leopard (10.5)
then you're pretty much out of luck. Your only option then will be using
the command-line.

If you have Snow Leopard (10.6), Lion (10.7) or Mountain Lion (10.8), the
following instructions should be sufficient to allow you to get up and
running.

Download and install GPGTools: http://nightly.gpgtools.org/GPGTools_Installer-trunk.dmg

Once you have installed GPGTools,  what you want to do is to go into
System Preferences --> Keyboard --> Services.

Scroll down until you find the following entries. Be sure to put a check
mark in the boxes to activate each keyboard shortcut.

Keyboard shortcuts:

OpenPGP: Decrypt Selection:             Shift-Command-D

OpenPGP: Encrypt Selection:             Shift-Command-E

OpenPGP: Import Key from Selection:     Shift-Command-I

OpenPGP: Insert My Fingerprint:         Shift-Command-F

OpenPGP: Insert My Key:                 Shift-Command-K

OpenPGP: Sign Selection:                Shift-Command-R

OpenPGP: Verify Signature of Selection: Shift-Control-V

Remember, these shortcuts only operate on highlighted or selected text.

N.B.: To properly be able to import PGP into GPGChain (via TextEdit) you
need to change the default on TextEdit from .rtf to plain text. You can do
that through the Format menu, or you can go through the main configuration
menu, accessible by using Command-comma. Ensure the plain text radio button
is selected.

Also ensure that the following are UNCHECKED in TextEdit preferences:
smart quotes, smart dashes, smart links.

To select text within TextEdit, use Command-A to highlight the entire
document, or use your mouse to selection the section that you want to
verify/sign/encrypt/decrypt. It is highly recommended that you use only
plain-text, as opposed to Rich Text (.rtf) format. Use Command-comma to
bring up Preferences and ensure that the plain text radio button is
checked.

Once your text is highlighted in TextEdit, (by pressing Comand-A) you then
encrypt using Shift-Command-E. You will then be presented with a list of
keys to encrypt to, that you have added to your PGP keyring:

Other Commands You May Need:
============================

OpenPGP: Decrypt File:                   Control-Command-D

OpenPGP: Encrypt File:                   Control-Command-E

OpenPGP: Sign File:                      Control-Command-S

OpenPGP: Verify Signature of File:       Control-Command-V


Once you have setup these shortcuts, you can begin using GPG.

To encrypt a message to someone using GPG, you first need a copy of the
recipient's PGP public key.

Once you have located someone's PGP public key, you should copy and paste
it into Text Edit. Save the PGP key to a file; you can call the file,
import.asc (or import.txt), for example. This saved file will usually be
found in the Documents folder.

Launch GPG Keychain Access from the Applications folder. click on the
Import icon in the upper left hand corner. GPG Keychain Access will then
prompt you for the name of the file which contains the key to import. It
will usually show you a list of files in the Documents folder. Click on the
file named import.asc (or import.txt), and click ok. The PGP public key
will then be imported into your PGP keyring.

To encrypt a message to a person, the message must be contained in a
TextEdit document. Use Command-A to highlight the entire document. Then
use Shift-Command-E to encrypt. GPG will pop-up a list of public keys in
your PGP keyring. Each key will have a little checkbox beside it which you
can check, to select that particular key. If you were encrypting a message
to me, you would put a check in the box beside my PGP key (Guru@SR).

When you click on OK, the plaintext (unencrypted) message in TextEdit will
be replaced with the encrypted message. You can then copy and paste the
encrypted message to enter it into a form on Silk Road, or anywhere else
that it needs to go.

To decrypt a message sent to you by other people, you need to copy that
message to the clipboard, and paste it into a Text Edit document. Again use
Command-A to highlight all the encrypted message. Then use Shift-Command-D
to decrypt the message. If the message is encrypted to your PGP public key,
you will be prompted to enter your passphrase. Once the correct passphrase
has been entered, and you click OK, then the message will be decrypted,
and the decrypted text will be placed in the Text Edit document, replacing
the encrypted message that was there previously.

Wicked! thanks Wad you are a legend +1  :)
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: blackflash8686 on April 08, 2013, 01:14 pm
Woah i just did something cool. I dont know if you knew this but i started thinking why some keys where there and some where not when i open gpg keychain acess. so i copied a public key from a vendor and i pasted it in text edit. i saved it under their name. then i opened up gpg key chain access and clicked import and searched for the text edit file. and it imported the key info! and now it seem to be permanently  on the list of imported keys! i guess it still doesnt explain why sometimes even if you want to sign with your key nothing comes up. but anyway hope it helps. i think it ha to do with the connection to the server but who knows
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: samesamebutdifferent on April 08, 2013, 01:23 pm
Woah i just did something cool. I dont know if you knew this but i started thinking why some keys where there and some where not when i open gpg keychain acess. so i copied a public key from a vendor and i pasted it in text edit. i saved it under their name. then i opened up gpg key chain access and clicked import and searched for the text edit file. and it imported the key info! and now it seem to be permanently  on the list of imported keys! i guess it still doesnt explain why sometimes even if you want to sign with your key nothing comes up. but anyway hope it helps. i think it ha to do with the connection to the server but who knows

Right trying that now, nothing else has worked so far.
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: samesamebutdifferent on April 08, 2013, 01:30 pm
Woah i just did something cool. I dont know if you knew this but i started thinking why some keys where there and some where not when i open gpg keychain acess. so i copied a public key from a vendor and i pasted it in text edit. i saved it under their name. then i opened up gpg key chain access and clicked import and searched for the text edit file. and it imported the key info! and now it seem to be permanently  on the list of imported keys! i guess it still doesnt explain why sometimes even if you want to sign with your key nothing comes up. but anyway hope it helps. i think it ha to do with the connection to the server but who knows

Mate you are a fucking legend, that fixed it!! PM me your BTC wallet addy and I will send you a little thank you donation, you have no idea how many hours I have wasted today trying to sort this issues out.
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: blackflash8686 on April 08, 2013, 02:27 pm
damn if feels good to be useful. more than grateful! sent the PM thank just for the acknowledgment!
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: samesamebutdifferent on April 08, 2013, 07:57 pm
You should have a small thank you in your account soon ;)
Title: Re: GPG - public key not showing up in 'choose recipients' when trying to encrypt??
Post by: blackflash8686 on April 08, 2013, 09:33 pm
let it be know samesamebutdiffrent is a man of his word which is everything around these parts. thanks mate for your not so small gift! ill be sure to do my best to earn it. really thanks!