From 5182d5e3d86cdcb338a7e96c97a2bf99436ddabc Mon Sep 17 00:00:00 2001 From: apiraino Date: Sun, 22 Aug 2021 21:21:50 +0200 Subject: Rewrite keys generation tutorial The master key is now created with `--batch` and a configuration script. The subkeys are created with the quick key manipulation interface (`--quick-add-key`). Also provided two configuration scripts as templates for a RSA4096 or a ED25519 master key. Signed-off-by: apiraino --- contrib/gen-params-rsa4096 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 contrib/gen-params-rsa4096 (limited to 'contrib/gen-params-rsa4096') diff --git a/contrib/gen-params-rsa4096 b/contrib/gen-params-rsa4096 new file mode 100644 index 0000000..856b62a --- /dev/null +++ b/contrib/gen-params-rsa4096 @@ -0,0 +1,29 @@ +%echo Generating a OpenPGP key + +# uncomment the following line to remove asking for a passphrase +#%no-protection + +Key-Type: RSA +Key-Length: 4096 +# Key generated is a master key ("certificate") +Key-Usage: cert + +# Parameters to generate a subkey +# Subkey-Type: ELG-E +# Subkey-Length: 4096 +# Choose one of following options +# Subkey-Usage: encrypt +# Subkey-Usage: sign +# Subkey-Usage: auth + +# select a name and email address - neither has to be valid nor existing +Name-Real: Dr Duh +Name-Email: + +# Do not set the key to expire +Expire-Date: 0 + +# Do a commit here, so that we can later print "done" :-) +%commit + +%echo done -- cgit v1.2.3 From 03f37b851352687898ea26e29e5909875f1f38f2 Mon Sep 17 00:00:00 2001 From: apiraino Date: Tue, 12 Apr 2022 16:24:37 +0200 Subject: Add section to quickly create keys --- contrib/gen-params-rsa4096 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/gen-params-rsa4096') diff --git a/contrib/gen-params-rsa4096 b/contrib/gen-params-rsa4096 index 856b62a..4806368 100644 --- a/contrib/gen-params-rsa4096 +++ b/contrib/gen-params-rsa4096 @@ -18,7 +18,7 @@ Key-Usage: cert # select a name and email address - neither has to be valid nor existing Name-Real: Dr Duh -Name-Email: +Name-Email: doc@duh.to # Do not set the key to expire Expire-Date: 0 -- cgit v1.2.3