Yubico Forum https://forum.yubico.com/ |
|
Can't import PGP key to Yubikey 4 https://forum.yubico.com/viewtopic.php?f=35&t=2800 |
Page 1 of 1 |
Author: | onemorething [ Sat Dec 09, 2017 3:14 am ] |
Post subject: | Can't import PGP key to Yubikey 4 |
Based on all the instructions I've read (and they are almost all the same as each other) the importing of my PGP key should be really simple. But, I just can't import my key. Using gpg2 I create the new key on my computer and then add subkeys for signing and authentication (using 4096 keys). Using "gpg2 --edit-key [key_id]" and the command keytocard, I try to move the key to my Yubikey 4. But, I get: "gpg: KEYTOCARD failed: Bad secret key" I am definitely using the correct passphrase. Any suggestions would be greatly appreciated. Thanks. J |
Author: | Anaglypta [ Sun Dec 10, 2017 12:54 am ] |
Post subject: | Re: Can't import PGP key to Yubikey 4 |
Hello @onemorething, Did you enter the toggle command to switch between public and private key listings? ie gpg --edit-key [key_id] toggle keytocard etc,etc What do you get if you run the command "gpg -K" John. |
Author: | onemorething [ Mon Dec 11, 2017 12:55 am ] |
Post subject: | Re: Can't import PGP key to Yubikey 4 |
Hi John, Thanks for replying. Yes, I ran the toggle command and followed these instructions precisely: https://www.yubico.com/support/knowledg ... eratelocal But I continue to get "gpg: KEYTOCARD failed: Bad secret key". I'm using Linux. Is it possible that I'm missing a library? I should point out that I'm using gpg2, not gpg. gpg2 -K presents my secret keys as expected. J. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |