mkdocs-benoit.jp.net/HowtoGPG.page

35 lines
724 B
Text
Raw Normal View History

2020-12-08 08:15:10 +00:00
# HowtoGPG
2020-12-08 09:53:00 +00:00
## Some commands:
2020-12-08 08:15:10 +00:00
```
gpg --card-status
gpg --export-ssh-key keyID
gpg --armor --export keyID > pubkey.asc
```
2020-12-08 09:53:00 +00:00
## Use Nitrokey from new system:
2020-12-08 08:15:10 +00:00
```
gpg --import pubkey.asc
gpg --card-status
```
2020-12-08 09:53:00 +00:00
## Export your public key to your web server:
```
$ mkdir openpgpkey
2020-12-08 08:39:25 +00:00
$ gpg --list-options show-only-fpr-mbox -k keyID | /usr/lib/gnupg/gpg-wks-client -v --install-key
```
2020-12-08 09:33:33 +00:00
Then publish to your web server. https://openpgpkey.example.com/.well-known/openpgpkey/example.com/hu/
2020-12-08 09:53:00 +00:00
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
```