aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCsanad Beres <qed.csberes@gmail.com>2024-03-07 15:17:14 +0100
committerCsanad Beres <qed.csberes@gmail.com>2024-03-07 15:17:14 +0100
commit623a60cc8386bdb8afe6e4ecf8758ef8f728c4e9 (patch)
treec0f605107edad85a1aab4ef372dd3f7fe034bf9e
parentMerge pull request #420 from drduh/fix-metadata (diff)
downloadYubiKey-Guide-623a60cc8386bdb8afe6e4ecf8758ef8f728c4e9.tar.gz
update gpg --quick-add-key commands
it seems to be only accepting fingerprints and rejecting key ID-s
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 1fc8001..8c99bc0 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