Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 4632  / 3 Years ago, thu, november 18, 2021, 11:40:00

How do I transfer public and private PGP Keys to a Mac OS X Lion machine?


More From » macosx

 Answers
5

Assuming that you are using GnuPG on Ubuntu...



First, you should export them:



gpg --export-secret-keys <keyid>  >key.gpg
gpg --export <keyid> >>key.gpg


Then you should transfer this file to the Mac via a secure channel and import the keys on the recipient. You should be able to import the key via the graphical GPG Keychain, or through the command line (gpg --import key.gpg).



If you need to use a insecure channel to transfer the private key, such as email or other network based channels (where you don't have proper certificates ensuring that you are really communicating with the correct machine), you must use PGP (or some other method) to keep you private key secure:




  • On your Mac, create a temporary key pair send the public part to your Ubuntu machine

  • On your Ubuntu, check the fingerprint of the received key and encrypt 'key.gpg' with it, also signing it with you own key

  • Send both the Ubuntu public key and the encrypted 'key.gpg.gpg' file to the Mac

  • Again on your Mac, check the fingerprint of the received key and decrypt/verify the received 'key.gpg.gpg' file


[#23539] Friday, November 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
etzelmortg

Total Points: 430
Total Questions: 105
Total Answers: 106

Location: Suriname
Member since Sun, Jun 13, 2021
3 Years ago
;