Yubico Forum

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

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Apr 16, 2015 7:14 pm 
Offline

Joined: Thu Apr 16, 2015 7:05 pm
Posts: 8
Does anyone know how to get past this `keytocard` error please?

Sequence of commands to get the error:

```
$>gpg --edit-key [my key id]
/snip/
Secret key is available.
/snip/
gpg>toggle
/snip/
gpg>key 1
/snip/
gpg>keytocard
/snip/
Please select where to store the key:
(2) Encryption key
Your selection? 2
Key does not match the card's capability.
```

# What I'm using:

gpg (GnuPG/MacGPG2) 2.0.27
libgcrypt 1.6.3

OSX 10.10.3 (14D131)

ykpersonalize -V
Firmware version 3.4.0 Touch level 1797 Program sequence 2
Unsupported firmware revision - some features may not be available
Please see https://developers.yubico.com/... for more information.
1.16.0
Yubikey core error: unsupported firmware version

OSX Yubikey Personalization Tool says it's firmware 3.4.0, Slot 1 configured, no errors. (If there was a way to do all this in the OSX YPT, I'd do it there, but AFAIK there is not; I can't even set -m28 with it. Grrr.)

Thanks much in advance, /rb


Last edited by rbondi on Sat Apr 18, 2015 1:57 am, edited 1 time in total.

Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Thu Apr 16, 2015 9:53 pm 
Offline

Joined: Thu Apr 16, 2015 7:05 pm
Posts: 8
I figured it out: the Neo cannot accept keys longer than 2048 bits.

When I generate a keypair outside the Neo, on a desktop GnuPG, if it is 2048 bits, 'keytocard' works just fine. If the key length is greater than that, I get the above error message.

So the error message is accurate if albeit vague: the key indeed does not match the card's capability, when it is greater than 2048 bits.

Googling uncovered this thoughtful explanation by Yubico of this limitation: https://www.yubico.com/2015/02/big-deba ... cos-stand/


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 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