Authentication Keys - How to generate a GPG public/private key pair to get SSH keys
Jump to navigation
Jump to search
- For Windows download GPG4Win: https://gpg4win.org/download.html. Don't panic when it asks for a donation, select PayPal and $0.
- During install select your language, usually English.
- Then uncheck the check boxes next to GPA and GpgOL.
- Accept the defaults till the installation closes.
- This will create a red dot in the notification area of your start menu with a small white tea cup on it.
- Double click the Kleopatra icon a dialog will open.
- Click the 'File' menu.
- Click 'New Key Pair'.
- Click 'Create a personal OpenPGP key pair'.
- Provide a name.
- Provide a valid e-mail.
- In advanced settings you can change the details of the keys, the defaults are RSA 2048bits. You can also set an expiration for these certificate.
- Set a passphrase that will be later be used like a password to use the private key you are generating.
- Click 'Finish' on the final menu after the keys are made.
- Right click on the keys you just created.
- Select 'Export' to export the public key.
- Put the file into a folder where you can find it.
- Name it something like: 'Public-Key_7-28-2018.asc'
- Send that file as an attachment to: 'techhelpbb@gmail' as part of the SSH request.
- I'll generate you an SSH key and encrypt it with your public key.
- Then e-mail the encrypted file back to you where you can decrypt it, first save it to a known folder.
- To decrypt the file in Kleopatra open the Kleopatra dialog again by double clicking on the icon.
- On the large buttons at the top of the dialog select 'Decrypt/Verify'.
- Find the e-mail attachment you saved in the previous step.
- After a brief delay the program should ask you if you want to 'Save All' and at the top of the dialog ask you where.
- Specify a location you prefer for the output and click 'Save All'.
Relevant links:
https://www.dash.org/forum/threads/basic-guide-to-pgp-on-windows-pc-kleopatra-%E2%80%93-gpg4win.4086/