Justfile/switch-gpg-card: add comment about missing trust

This commit is contained in:
steveej 2020-11-24 22:59:33 +01:00
parent fbbeba15ff
commit 3a417cec64

View file

@ -298,6 +298,7 @@ switch-gpg-card:
# export pubkey and ownertrust # export pubkey and ownertrust
gpg2 --output "${KEY_ID}".pubkey --export "${KEY_ID}" gpg2 --output "${KEY_ID}".pubkey --export "${KEY_ID}"
# if this fails the trust in the key is missing and can be fixed with `gpg --edit-key ${KEY_ID}`
gpg2 --export-ownertrust | rg "${KEY_ID}" > "${KEY_ID}".ownertrust gpg2 --export-ownertrust | rg "${KEY_ID}" > "${KEY_ID}".ownertrust
# delete the key # delete the key