quick-docs/modules/ROOT/partialsdelete/2delete-proc_exporting-gpg-keys-cli.adoc

20 lines
499 B
Text
Raw Permalink Normal View History

2018-03-02 16:34:56 +01:00
[[exporting-gpg-keys-cli]]
= Exporting a GPG Key Using the Command Line
Use the following command to send your key to a public keyserver:
----
2021-02-09 17:27:15 +08:00
gpg --send-key KEYNAME
2018-03-02 16:34:56 +01:00
----
For `KEYNAME`, substitute the key ID or fingerprint of your primary keypair.
2021-02-09 17:27:15 +08:00
This will send your key to the gnupg default key server. If you prefer another one use:
2018-03-02 16:34:56 +01:00
----
2021-02-09 17:27:15 +08:00
gpg --keyserver hkp://pgp.mit.edu --send-key KEYNAME
2018-03-02 16:34:56 +01:00
----
Replacing `pgp.mit.edu` with your server of choice.
2021-02-09 17:27:15 +08:00
Now see <<safeguarding-your-secret-key>>.