Update 'OpenPGP to Card'

2022-04-03 22:31:21 +08:00
parent c0ecd5a6a6
commit 5fdc04d78a

36
OpenPGP-to-Card.md Normal file

@@ -0,0 +1,36 @@
GPG private keys can be copied or moved to the Yubikey. The following examples moves them.
```shell
gpg --edit-key <keyId>
gpg> toggle
gpg> key 1
gpg> keytocard
Please select where to store the key:
(1) Signature key
(3) Authentication key
Your selection? 1
gpg> key 1
gpg> key 2
gpg> keytocard
Please select where to store the key:
(2) Encryption key
Your selection? 2
gpg> key 2
gpg> key 3
gpg> keytocard
Please select where to store the key:
(3) Authentication key
Your selection? 3
gpg> quit
```
> https://ruimarinho.gitbooks.io/yubikey-handbook/content/openpgp/importing-keys.html