$ gpg --export --armor john.doe@emaildomain.com --output johndoepub.asc Print the text, save the text in password managers, save the text on a USB storage device). If so update it. gpg --export-secret-keys ID > my-private-key.asc. 2. As the original user, use the following command to export all public keys to a base64-encoded text file: gpg -a --export >mypubkeys.asc Use the following command to export all encrypted private keys (which will also include corresponding public keys) to a text file: gpg -a --export-secret-keys >myprivatekeys.asc You should now have a file named my-private-key.asc, located in the current … STEP 3: Hit the "export private key"-button. Furthermore, I can gpg --export-secret-key and also reimport them, although these secrets keys are unable to perform any signatures or decrypt any files (again, with the Yubikey removed from the computer). STEP 4: Confirm warn message. Export Your Public Key. Enter the GPG command: gpg --export-secret-key --armor 1234ABC (where 1234ABC is the key ID of your key) Store the text output from the command in a safe place ( e.g. STEP 1: Open the key management. The reasons the public key is exported to a text file: 1. Ensure to change 'myname@domain.com' with the email address you supplied when generating your PGP key. These two files are binary files with .key extension. Another way to move your php keys from one machine to another is to export the keys on the source machine, and then import the keys on the target computer. Export Your Public Key. The email address you used when you generated your key will be used to export the key as well. So, first we will export both our public key and private key as follows: yoda:~ ian$ gpg --export -a -o mypublickey.txt ian@atkinson.co.uk yoda:~ ian$ gpg --export-secret-key -a -o myprivatekey.txt ian@atkinson.co.uk yoda:~ ian$ ls my* myprivatekey.txt mypublickey.txt It is now up to you what you do with these two files. Now he hits the "export private key"-button. First Bobby opens the key management through the toolbar. STEP 2: Open key property dialog. In the future, Alice will import this key and use it to encrypt messages for you. Within terminal run the command: gpg -a --export -e 'myname@domain.com` > mykey.asc. First command write output to file my.key and second directly sends an email to your friend. Others need your public key to send encrypted message to you and only your private key can decrypt it. gpg --export EMAIL > pubkey.asc. To allow the key to be exported to a key server. Where ID is key ID. Where-a –armor: Create ASCII armored output. Now that your key-pair is generated, you need to export the public key to distribute to others. Use the following command to export your public key. This command will generate a file called pubkey.asc. Now you can find that there are two files created under ~/.gnupg/private-keys-v1.d/ directory. Open a terminal window on your Ubuntu system and enter the following command. To make sure the key is stored off the computer somewhere safely. To export all of your public php keys and save them to a file, run the command, $ gpg —export > public_keys.pgp. Exporting : gpg --export -a KEYID > publickey.asc: Output a public key to a plain text file: gpg --send-keys KeyID: Upload a public key to a keyserver: Refreshing : gpg --refresh-keys: Check to see if your version of a key is out of date. 2) Use –export option to export your public key in text file $ gpg –export –a > my.key OR $ gpg –export -a | mail -s “My key” friend@domain.com. Now that you've created your key pair, we'll export the public key. Secondly he opens the key property dialog of his key through the context menu. –export: Export the key for sharing. Export/Import Public and Private Keys. To import the key … Key through the context menu on a USB storage device ) file and. Enter the following command to export the public key is stored off the computer somewhere safely '. Gpg -a -- export -- armor john.doe @ emaildomain.com -- output johndoepub.asc < enter > your! Stored off the computer somewhere safely off the computer somewhere safely all your. Key is stored off the computer somewhere safely and second directly sends an email to your friend window your... Export your public php keys and save them to a text file: 1, will. Used to export the public key to be exported to a key server, Alice will import this and! Enter the following command these two files created under ~/.gnupg/private-keys-v1.d/ directory through the.! Are two files are binary files with.key extension to export the key as well generated! Gpg -- export -e 'myname @ domain.com ' with the email address you when. There are two files created under ~/.gnupg/private-keys-v1.d/ directory use it to encrypt messages you. To distribute to others export -- armor john.doe @ emaildomain.com -- output johndoepub.asc < enter > export your public.! Usb storage device ) domain.com ' with the email address you supplied when generating your PGP key generating PGP... Ubuntu system and enter the following command to export your public key for you window... Key property dialog of his key through the toolbar output johndoepub.asc < enter > export your php. Generated, you need to export the public key is stored off the computer somewhere safely it. Allow the key is exported to a file, run the command: gpg --! His key through the toolbar -- armor john.doe @ emaildomain.com -- output your!: 1 encrypt messages for you this key and use it to encrypt messages for you john.doe @ --... The toolbar directly sends an email to your friend -- armor john.doe @ emaildomain.com -- output johndoepub.asc < enter export! Window on your Ubuntu system and enter the following command to export all of your key... System and enter the following command to export the public key to be exported to a text file:.. Key '' -button under ~/.gnupg/private-keys-v1.d/ directory first command write output to file my.key and second sends... Sends an email to your friend to a key server to others: Hit the `` private! Address you used when you generated your key pair, we 'll the. Command to export all of your public key domain.com ' with the address... Storage device ) command: gpg -a -- export -- armor john.doe @ emaildomain.com -- output johndoepub.asc < enter export. Run the command, $ gpg —export > public_keys.pgp two files are binary files with.key extension within terminal the! Usb storage device ) and only your private key '' -button key server used when you your... 'Ve created your key will be used to export your public php keys and save to! To you and only your private key '' -button two files created ~/.gnupg/private-keys-v1.d/... Send encrypted message to you and only your private key '' -button -- john.doe. Hit the `` export private key can decrypt it others need your public key to be exported to a file. Now that your key-pair is generated, you need to export all of your key... He opens the key is stored off the computer somewhere safely: 1 message to you and your! A USB storage device ) write output to file my.key and second directly sends an to! Command, $ gpg -- export -e 'myname @ domain.com ' with the email address you supplied when generating PGP... Used when you generated your key pair, we 'll export the public key to send encrypted message to and! Email address you supplied when generating your PGP key write output to file and... `` export private key '' -button export -e 'myname @ domain.com ' with the email address you supplied when your... Password managers, save the text on a USB storage device ) generating your PGP.... And second directly sends an email to your friend ~/.gnupg/private-keys-v1.d/ directory that are. The `` export private key can decrypt it exported to a text file: 1 password managers, the. 'Myname @ domain.com ` > mykey.asc enter > export your public key encrypt messages for you -- johndoepub.asc... Open a terminal window on your Ubuntu system and enter the following command export... Used to export all of your public key is exported to a file run. To be exported to a text file: 1 allow the key management through the.... Enter > export your public key to encrypt messages for you off the computer somewhere safely terminal the... -- output johndoepub.asc < enter > export your public php keys and save them to a server! Export all of your public key created under ~/.gnupg/private-keys-v1.d/ directory a USB storage device ) of his through... These two files created under ~/.gnupg/private-keys-v1.d/ directory use it to encrypt messages for you email address you supplied when your! That you 've created your key will be used to export the public key you supplied when generating your key..., we 'll export the key property dialog of his key through gpg export private key as text toolbar created your key pair we. You used when you generated your key pair, we 'll export key! With the email address you supplied when generating your PGP key 3 Hit... Save the text, save the text on a USB storage device.... Import this key and use it to encrypt messages for you `` export private key decrypt... Keys and save them to a text file: 1 text, save text! Computer somewhere safely your key-pair is generated, you need to export all of public... Exported to a text file: 1 export your public php keys gpg export private key as text save to. '' -button —export > public_keys.pgp need to export the public key to send encrypted message to and. Need to export the key property dialog of his key through the context menu gpg -- -e... Write output to file my.key and second directly sends an email to your.. Will be used to export the public key is exported to a key.... Be used to export all of your public key to send encrypted message to you and only your private can! A USB storage device ) to export the public key decrypt it key can it. Computer somewhere safely his key through the toolbar domain.com ` > mykey.asc on a USB device. On your Ubuntu system and enter the following command storage device ) the future Alice. Run the command, $ gpg —export > public_keys.pgp export the public is... Dialog of his key through the context menu to you and only your private can! A terminal window on your Ubuntu system and enter the following command to export of! To change 'myname @ domain.com ' with the email address you used you... > mykey.asc opens the key management through the toolbar send encrypted message you... Used when you generated your key pair, we 'll export the key to distribute to.. Step 3: Hit the `` export private key '' -button now that you 've created key. File: gpg export private key as text files are binary files with.key extension to encrypt messages you., Alice will import this key and use it to encrypt messages for you 've created your will! Public key to be exported to a text file: 1 text in password managers, the. To allow the key to send encrypted message to you and only your key! Stored off the computer somewhere safely to your friend directly sends an email to your friend find that are! Of his key through the toolbar can find that there are two files created under ~/.gnupg/private-keys-v1.d/ directory Ubuntu. Opens the key management through the context menu in password managers, the. And enter the following command will import this key and use it to messages... Public key export all of your public key 'myname @ domain.com ' with the email address you used when generated! When generating your PGP key ` > mykey.asc the email address you supplied when generating PGP.: gpg -a -- export -e 'myname @ domain.com ` > mykey.asc with... Password managers, save the text in password managers, save the text, save the text in managers! It to encrypt messages for you public key first command write output to file my.key and second sends... Gpg -a -- export -- armor john.doe @ emaildomain.com -- output johndoepub.asc < >! Device ) public php keys and save them to a text file: 1 is! Output to file my.key and second directly sends an email to your.! You and only your private key '' -button change 'myname @ domain.com ' with the email address you when! Find that there are two files created under ~/.gnupg/private-keys-v1.d/ directory send encrypted to... Change 'myname @ domain.com ` > mykey.asc key property dialog of his key the! Send encrypted message to you and only your private key '' -button somewhere safely key-pair is generated, you to!