aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authordrduh <github@duh.to>2024-03-11 16:10:32 +0000
committerGitHub <noreply@github.com>2024-03-11 16:10:32 +0000
commit12b232d28fbb6ea61ccff2075751105c77ca84ee (patch)
treec269ee5495418d4e45762328ebb77dd222a49f1a
parentMerge pull request #424 from drduh/wip-10mar24 (diff)
parentupdate gpg --quick-add-key commands (diff)
downloadYubiKey-Guide-12b232d28fbb6ea61ccff2075751105c77ca84ee.tar.gz
Merge pull request #423 from Xronophobe/fix/quick-add-key-with-fpr
update gpg --quick-add-key commands
Diffstat (limited to '')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 0a9da27..cabc443 100644
--- a/README.md
+++ b/README.md
@@ -2712,16 +2712,17 @@ Verify the Certify key:
gpg --list-key
```
-Export the Certify key ID and create the Subkeys:
+Export the Certify key ID, extract its fingerprint and create the Subkeys:
```console
export KEYID=0xF0F2CFEB04341FB5
+KEYFPR=$(gpg --fingerprint "$KEYID" | grep -Eo '([0-9A-F][0-9A-F ]{49})' | head -n 1 | tr -d ' ')
-gpg --quick-add-key "$KEYID" rsa4096 sign 2y
+gpg --quick-add-key "$KEYFPR" rsa4096 sign 2y
-gpg --quick-add-key "$KEYID" rsa4096 encrypt 2y
+gpg --quick-add-key "$KEYFPR" rsa4096 encrypt 2y
-gpg --quick-add-key "$KEYID" rsa4096 auth 2y
+gpg --quick-add-key "$KEYFPR" rsa4096 auth 2y
```
# Additional resources