# gnupg (gpg) # export public info Export public key string with ASCII-armor `gpg --armor --export username@email` # export private key info `gpg --output private.pgp --armor --export-secret-key username@email` See also -------- https://www.gnupg.org/gph/en/manual/x56.html The GNU Privacy Handbook