mirror of
https://github.com/drduh/YubiKey-Guide.git
synced 2024-11-21 23:08:08 +00:00
update gpg --quick-add-key commands
it seems to be only accepting fingerprints and rejecting key ID-s
This commit is contained in:
parent
53ed405cef
commit
623a60cc83
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user