How to export a GPG private key and public key to a file

A 5 star hangout for overworked and underpaid system admins.
Post Reply
BarbaraMiller
Posts: 1
Joined: 2020/06/02 12:54:28

How to export a GPG private key and public key to a file

Post by BarbaraMiller » 2020/06/02 12:56:51

I have generated keys using GPG, by executing the following command

Code: Select all

gpg --gen-key
Now I need to export the key pair to a file; i.e., private and public keys to

Code: Select all

private.pgp
and

Code: Select all

public.pgp
, respectively.

How do I do it?

Post Reply