Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 10:07 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Dec 09, 2017 3:14 am 
Offline

Joined: Tue Nov 14, 2017 12:53 am
Posts: 5
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


Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Sun Dec 10, 2017 12:54 am 
Offline

Joined: Mon Nov 13, 2017 6:20 pm
Posts: 5
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 11, 2017 12:55 am 
Offline

Joined: Tue Nov 14, 2017 12:53 am
Posts: 5
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.


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: No registered users and 2 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