How to move your PGP private key across to a smartcard using gpg for Windows:
gpg --edit-key Key_ID_here
You should see some background on your key. Key line is “Secret key available.”
GPG will enter interactive mode – you will see gpg> at the start of the command line.
When asked to select where to store the key, enter:
(It’s got an E flag, so can only be stored in the E slot on card). You will then need to enter your passphrase followed by the admin key on the card.
Really move the primary key? (y/N)
Please select where to store the key:
(1) Signature key
(3) Authentication key
You will be asked for your passphrase and then your admin PIN again.
And you’re done.
One reply on “GPG Key to Card”
[…] (for keytocard, see this post) […]