Merge pull request #423 from Xronophobe/fix/quick-add-key-with-fpr

update gpg --quick-add-key commands
pull/426/head
drduh 2024-03-11 16:10:32 +00:00 committed by GitHub
commit 12b232d28f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -2712,16 +2712,17 @@ Verify the Certify key:
gpg --list-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 ```console
export KEYID=0xF0F2CFEB04341FB5 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 # Additional resources