From c6558b4525b9caa47a0ad11be82daf32e0aaca34 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 3 May 2019 19:07:54 +0200 Subject: [PATCH] gpg export private key and subkeys --- in/public/security/gpg/index.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/in/public/security/gpg/index.rst b/in/public/security/gpg/index.rst index 186ee80..763bb83 100644 --- a/in/public/security/gpg/index.rst +++ b/in/public/security/gpg/index.rst @@ -236,10 +236,27 @@ set primary UserID Export ====== +public key +---------- + .. code:: shell gpg --armor --export "Key ID" > pub.asc +private key +----------- + +.. code:: shell + + gpg --armor --export-secret-keys FFIINNGGEERRPPRRIINNTT > key.gpg + +private subkeys +--------------- + +.. code:: shell + + gpg --armor --export-secret-subkeys FFIINNGGEERRPPRRIINNTT > subkeys.gpg + Dump ====