GPG Reminder
Nov 22, 2018 · 1 minute readExport a GPG public key
gpg --armor --export <key_id>
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFvpfyEBCAC9i31yN0kPUeOGeGCVfxZESTQTb8+AhjWbDeptXs1uUJEmiC2x
[...]
=TWnJ
-----END PGP PUBLIC KEY BLOCK-----
Export a GPG private key
Find the key id:
gpg --list-secret-keys
then:
gpg --export-secret-keys <id> > alexandre-amor_private.asc
Add an identity to a public key
gpg --edit-key me@example.com
then:
gpg> adduid
Publish a public key to a key server
gpg --keyserver pool.sks-keyservers.net --send-keys me@example.com