Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 6:43 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Sep 02, 2016 1:47 am 
Offline

Joined: Fri Sep 02, 2016 1:43 am
Posts: 2
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?


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Fri Sep 02, 2016 1:58 am 
Offline
Yubico Team
Yubico Team

Joined: Thu Oct 16, 2014 3:44 pm
Posts: 349
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)


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 02, 2016 2:29 am 
Offline

Joined: Fri Sep 02, 2016 1:43 am
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group