Bootstrap FreeKB - GPG (GNU Privacy Guard) - Export certificates from a keyring (--armor --export)
GPG (GNU Privacy Guard) - Export certificates from a keyring (--armor --export)

Updated:   |  GPG (GNU Privacy Guard) articles

The gpg command with the --armor and --export flags can be used to display the public certificates in a GPG keyring. 

[root@server1 ~]# gpg --armor --export john.doe@example.com
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGEYEa0BDADfmXgtggcoQqtl90uS9z9PTZRECTITVj5/u1wAZrhGiosf7Cj5
eYTOUo5Gch/hrLJCoVCXrXm3Jiuo97EcB7eXSrAIffjM4/c7j0LbiyuOwj6Cffpx
cvJu0z8kMgk0jK1bPqh+iAWPTyEowqjJs6QVbPRK30QN0+oQ25EQ8g5hF7EKl...
-----END PGP PUBLIC KEY BLOCK-----

 

The --output option can be used to create a file that contains the public certificate.

[root@server1 ~]# gpg --output cert.gpg --armor --export john.doe@example.com

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 5b8fb5 in the box below so that we can be sure you are a human.