HowtoGPG¶
Some commands:¶
Use Nitrokey from new system:¶
Use GPG Agent as SSH Agent¶
$ vim .gnupg/gpg-agent.conf
enable-ssh-support
pinentry-program /usr/bin/pinentry-qt
$ systemctl --user enable --now /usr/lib/systemd/user/gpg-agent*
$ vim .bashrc
export SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh"
Export your public key to your web server:¶
$ mkdir openpgpkey
$ gpg --list-options show-only-fpr-mbox -k keyID | /usr/lib/gnupg/gpg-wks-client -v --install-key
Then publish to your web server. https://openpgpkey.example.com/.well-known/openpgpkey/example.com/hu/
My public key is available via: https://www.benpro.fr/.well-known/openpgpkey/hu/7ue9nu5hdtshxjynnn6haqyohye8716e
Get public keys¶
From WKD¶
WKD mean Web Key Directory. Interesting website: https://metacode.biz/openpgp/web-key-directory
From keyserver¶
With keys.openpgp.org¶
$ echo keyserver hkps://keys.openpgp.org >> ~/.gnupg/gpg.conf
$ gpg --auto-key-locate keyserver --locate-keys user@example.com
With sks-keyservers.net¶
Last update:
August 30, 2021
Created: December 8, 2020
Created: December 8, 2020