From 5fdc04d78abdf25912eef7cd06039a1bbb14a512 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 3 Apr 2022 22:31:21 +0800 Subject: [PATCH] Update 'OpenPGP to Card' --- OpenPGP-to-Card.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 OpenPGP-to-Card.md diff --git a/OpenPGP-to-Card.md b/OpenPGP-to-Card.md new file mode 100644 index 0000000..8b32ebc --- /dev/null +++ b/OpenPGP-to-Card.md @@ -0,0 +1,36 @@ +GPG private keys can be copied or moved to the Yubikey. The following examples moves them. + + +```shell +❯ gpg --edit-key + +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 \ No newline at end of file