Silk Road forums

Discussion => Security => Topic started by: Chopperos on December 09, 2011, 12:55 pm

Title: Saving GPG Public Keys from Text to Keyring in Mac
Post by: Chopperos on December 09, 2011, 12:55 pm
Arrgghh been trying to save the text format public keys that everyone seems to post on here and I'm struggling to get them saved to my Keyring.

Please can someone explain how this is done?

thanks.
Title: Re: Saving GPG Public Keys from Text to Keyring in Mac
Post by: wilnin on December 09, 2011, 02:32 pm
All you have to do is copy/paste the complete public key in textedit (for example), save it and then change the extension from ".txt" to ".asc". Then you can import it to the "GPG Keychain Access.app" with the import function (it needs the ".asc" extension to recognize it as a valid key.)
Hope that was your problem and that I correctly answered your question :-)
Good luck
Title: Re: Saving GPG Public Keys from Text to Keyring in Mac
Post by: TravellingWithoutMoving on December 09, 2011, 04:26 pm
 cut & paste text, no line feed / no blank lines before of after, no CR (carriage return / after pressing <Enter>), from '----' all the way to the last '-'    :-

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.16 (GNU/Linux)

xxx
xxx
-----END PGP PUBLIC KEY BLOCK-----


i dont know whether OSX has an issue if its not named with a specific file extension, under linux .txt OR .key will work.

if the error suggests there's a problem with the block, perhaps you left a letter off the beginnign or end, otherwise next step would be to rename the file to .key....try that.
still not working, try renaming the extension to .asc as suggested above.

ok
Title: Re: Saving GPG Public Keys from Text to Keyring in Mac
Post by: Chopperos on December 10, 2011, 01:38 am
Thanks guys.

I noticed that the TextEdit notepad doesnt have a .ASC format file, but thankfully it accpeted it when in a .txt file.

Previously I was saving it in .RTF format and it wasnt working.

Happy days.  Now up and running.
Title: Re: Saving GPG Public Keys from Text to Keyring in Mac
Post by: TravellingWithoutMoving on December 10, 2011, 08:44 pm
...the file open dialog should by default show (by filter) the file types its expecting to open/save, and usually if your file is not listed change the view to "all files" and then the list should refresh and listed all files in the current directory. i would think .txt or .key (or .asc) should be best, and .rtf is a rich text format.(wrong format here)...whenever saving files manually type the name dot extension manually to save as whatever ...don't invent your own file extensions but use the right type for the right application.
you would need to learn the standard file extensions Versus the applications that use them to use Mac / Linux / windows properly.

amen