Yubico Forum
https://forum.yubico.com/

Help with importing GPG to yubikey 4
https://forum.yubico.com/viewtopic.php?f=35&t=2409
Page 1 of 1

Author:  achow101 [ Fri Sep 02, 2016 1:47 am ]
Post subject:  Help with importing GPG to yubikey 4

I just got my Yubikey 4 today and I am trying to import my 4096 bit GPG key onto the yubikey. I am using Ubuntu 16.04. I tried following the instructions from https://developers.yubico.com/PGP/Importing_keys.html but I ran into some issues with importing the actual key with the keytocard command. After running keytocard, i get

Code:
gpg: KEYTOCARD failed: Bad secret key


Can someone help me out here?

Author:  ChrisHalos [ Fri Sep 02, 2016 1:58 am ]
Post subject:  Re: Help with importing GPG to yubikey 4

That means you're entering the wrong PIN / Admin PIN / passphrase, depending on what it's asking you to enter. The default PIN is 123456 and the default Admin PIN is 12345678. The passphrase is something you set during generation of the key, so I can't help you there. If you locked out the applet, you may need to reset it to return it to default - https://developers.yubico.com/ykneo-ope ... pplet.html (skip the prerequisites section since you're using the YubiKey 4, this is only if you have an old YubiKey NEO)

Author:  achow101 [ Fri Sep 02, 2016 2:29 am ]
Post subject:  Re: Help with importing GPG to yubikey 4

ChrisHalos wrote:
That means you're entering the wrong PIN / Admin PIN / passphrase, depending on what it's asking you to enter. The default PIN is 123456 and the default Admin PIN is 12345678. The passphrase is something you set during generation of the key, so I can't help you there. If you locked out the applet, you may need to reset it to return it to default - https://developers.yubico.com/ykneo-ope ... pplet.html (skip the prerequisites section since you're using the YubiKey 4, this is only if you have an old YubiKey NEO)

Thank you for the help. I did not realize that the PIN for GPG was different from the one in the PIV manager. That was what screwed me up.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/