GPG¶
Usage¶
Search Keys¶
varac@varac.net key:
Change passphrase¶
Reloads gpg-agent after changing the passphrase !
Clearsign¶
will result in a clearsigned text.txt.asc, consisting of data and Signature
Debian Style Sign¶
Verify¶
Test encrypt + decrypt¶
Show Recipients¶
gpg --list-only passwords.gpg # does not show own key
gpg --no-default-keyring --secret-keyring /dev/null -a --list-only \
passwords.gpg
Show whether key is locally signed¶
Edit key¶
Renew / extend expiry date¶
export KEYID=$KEYID
gpg --edit-key $KEYID
expire
2y
key 1 # This is for the encryption subkey
expire
2y
save
gpg --list-keys $KEYID
Send pubkey to default keyserver and hkps pool:
Add identity¶
Trust shows up as "unknown", but after saving the key it's set to ultimate.
Change identity¶
Key transistion¶
i.e. from dsa1024/$OLD_KEYID to rsa4096/$KEYID
Sign new key with old key¶
Revoke old key¶
gpg --output varac@varac.net-$OLD_KEYID-revocation-certificate.asc --gen-revoke $OLD_KEYID
gpg --import varac@varac.net-$OLD_KEYID-revocation-certificate.asc
gpg --send-keys $OLD_KEYID
Publish Key transition statement¶
Riseup docs: OpenPGP key transition
Show content of gpg key(ring)¶
or
Show only user-ids of containing keys¶
Qrcodes¶
qrencode fingerprint:
qrencode -t utf8 "OPENPGP4FPR:$KEYID"
qrencode -t utf8 "OPENPGP4FPR:$(gpg --fingerprint varac@varac.net | grep '^ ' | sed 's/.*= //; s/ //g')"