How to export public GPG key?
+2
−0
GPG stores keys inside an internal database of some sort. How to export your public key in the familiar -----BEGIN PGP PUBLIC KEY BLOCK-----
format so that it can be imported to other software? E.g. to a git forge.
2 answers
+3
−0
No need to search for a key ID. Just type the e-mail associated with your key and export your public key like this:
$ gpg --export -a something@example.net > my_key.asc
0 comment threads
+2
−0
This is how to save it to a file:
$ gpg --export --armor key-id > my-key.pub
--armor
stands for the format with printable characters.
0 comment threads