added gpg --locate-key

This commit is contained in:
benoit 2020-12-08 09:53:00 +00:00
parent 06be188542
commit 9f648a022c

View file

@ -1,20 +1,20 @@
# HowtoGPG # HowtoGPG
Some commands: ## Some commands:
``` ```
gpg --card-status gpg --card-status
gpg --export-ssh-key keyID gpg --export-ssh-key keyID
gpg --armor --export keyID > pubkey.asc gpg --armor --export keyID > pubkey.asc
``` ```
Use Nitrokey from new system: ## Use Nitrokey from new system:
``` ```
gpg --import pubkey.asc gpg --import pubkey.asc
gpg --card-status gpg --card-status
``` ```
Export your public key to your web server: ## Export your public key to your web server:
``` ```
$ mkdir openpgpkey $ mkdir openpgpkey
@ -22,4 +22,14 @@ $ gpg --list-options show-only-fpr-mbox -k keyID | /usr/lib/gnupg/gpg-wks-client
``` ```
Then publish to your web server. https://openpgpkey.example.com/.well-known/openpgpkey/example.com/hu/ Then publish to your web server. https://openpgpkey.example.com/.well-known/openpgpkey/example.com/hu/
My public key is available via: <https://openpgpkey.benpro.fr/.well-known/openpgpkey/benpro.fr/hu/7ue9nu5hdtshxjynnn6haqyohye8716e> My public key is available via: <https://openpgpkey.benpro.fr/.well-known/openpgpkey/benpro.fr/hu/7ue9nu5hdtshxjynnn6haqyohye8716e>
## Get public keys
### From WKD
WKD mean Web Key Directory.
```
gpg --locate-key user@example.com
```