From 506fadca82b3065f5301b2a791b8f92ce0b0bd67 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 14 May 2019 20:56:31 +0200 Subject: [PATCH] gpg generate --- in/public/security/gpg/generate.rst | 54 ++++++++++++++++++++++++++++ in/public/security/gpg/index.rst | 1 + in/public/security/gpg/overview.rst | 55 ----------------------------- 3 files changed, 55 insertions(+), 55 deletions(-) create mode 100644 in/public/security/gpg/generate.rst diff --git a/in/public/security/gpg/generate.rst b/in/public/security/gpg/generate.rst new file mode 100644 index 0000000..0d11e6d --- /dev/null +++ b/in/public/security/gpg/generate.rst @@ -0,0 +1,54 @@ +Generate +======== + +master key +---------- + +.. code:: shell + + gpg --expert --full-generate-key + +:: + + 8 → RSA (set your own capabilities) + s → toggle the sign capability + e → toggle the encrypt capability + q → finished + 4096 + 1y → key expires in 1 year + y → this is correct + First Last + user@domain.tld + comment + o → ok + +.. code:: shell + + gpg --quick-generate-key 'First Last ' rsa4096 cert 1y + +revocation certificate +---------------------- + +.. code:: shell + + gpg --generate-revocation "KeyID" > "FFIINNGGEERRPPRRIINNTT.rev" + +:: + + y + +:: + + 0 → no reason specified + 1 → key has been compromised + 2 → key is superseded + 3 → key is no longer used + +:: + + description + y + +.. warning:: + + Hide this file in an encrypted container! diff --git a/in/public/security/gpg/index.rst b/in/public/security/gpg/index.rst index 711e779..1a2506f 100644 --- a/in/public/security/gpg/index.rst +++ b/in/public/security/gpg/index.rst @@ -6,4 +6,5 @@ GnuPG overview configure + generate servers diff --git a/in/public/security/gpg/overview.rst b/in/public/security/gpg/overview.rst index a79d5ad..34e58e8 100644 --- a/in/public/security/gpg/overview.rst +++ b/in/public/security/gpg/overview.rst @@ -10,61 +10,6 @@ OverView * sign * delete -Generate -======== - -master key ----------- - -.. code:: shell - - gpg --expert --full-generate-key - -:: - - 8 → RSA (set your own capabilities) - s → toggle the sign capability - e → toggle the encrypt capability - q → finished - 4096 - 1y → key expires in 1 year - y → this is correct - First Last - user@domain.tld - comment - o → ok - -.. code:: shell - - gpg --quick-generate-key 'First Last ' rsa4096 cert 1y - -revocation certificate ----------------------- - -.. code:: shell - - gpg --generate-revocation "KeyID" > "FFIINNGGEERRPPRRIINNTT.rev" - -:: - - y - -:: - - 0 → no reason specified - 1 → key has been compromised - 2 → key is superseded - 3 → key is no longer used - -:: - - description - y - -.. warning:: - - Hide this file in an encrypted container! - Search ======