1
OpenPGP to Card
Hatter Jiang edited this page 2022-04-03 22:31:21 +08:00
GPG private keys can be copied or moved to the Yubikey. The following examples moves them.
❯ 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