Yubico Forum

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

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Oct 19, 2014 10:19 pm 
Offline

Joined: Thu Aug 07, 2008 1:14 pm
Posts: 8
Location: Surrey, UK
I tried to change the PINs on a fresh NEO, but was confused what the message "Conditions of use not satisfied" means when trying to set the PIN/Admin PIN, and an additional fat-fingered PIN entry means I'm no longer able to use the OpenPGP functionality:

Code:
Application ID ...: D2760001240102000006030106290000
Version ..........: 2.0
Manufacturer .....: Yubico
Serial number ....: 03010629
...
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 0
Signature counter : 0
Signature key ....: [none]
Encryption key....: [none]
Authentication key: [none]
General key info..: [none]

gpg/card> admin
Admin commands are allowed

gpg/card> generate
Make off-card backup of encryption key? (Y/n) n

Please note that the factory settings of the PINs are
   PIN = `123456'     Admin PIN = `12345678'
You should change them using the command --change-pin

scdaemon[13182]: card is permanently locked!
gpg: error clearing forced signature PIN flag: Bad PIN


I thought these PINs would be possible to change from the PIV tools, but alas, yubico-piv-tool seems to manage a completely different set of PINs, not the ones shown above. Even if I change the PINs by yubic-piv-tool and/or reset the PIV applet, these counters don't seem to change.

The first seem to be the PIN retry, and the third is the admin PIN, but the second doesn't seem to change.

I also thought I would then need to reset everything in the OpenPGP applet (no big deal, as I have no private keys on it yet), but it seems to be this card is now too new to allow us mere mortals to upload new applets (Version 3.3.0) :shock:

So is it somehow possible to reset the PIN codes with this version?


Last edited by chexum on Wed Oct 22, 2014 8:11 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: Mon Oct 20, 2014 7:34 am 
Offline
Site Admin
Site Admin

Joined: Wed Nov 14, 2012 2:59 pm
Posts: 666
Please, follow available documentation here:
https://developers.yubico.com/ykneo-ope ... pplet.html

_________________
-Tom


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 20, 2014 8:24 pm 
Offline

Joined: Thu Aug 07, 2008 1:14 pm
Posts: 8
Location: Surrey, UK
Thank you - I missed those instructions apparently. They seemed to work, sort of, everything produced the appropriate output (it was showing version 1.0.7). However, now I can see even less of the OpenPGP functionality. After removing and reinserting the NEO, nothing related to OpenPGP seem to work:

Code:
% gpg --card-edit

gpg: OpenPGP card not available: Not supported

gpg/card> %
% gpg-connect-agent --hex "scd apdu 00 f1 00 00" /bye
ERR 100663427 Conditions of use not satisfied <SCD>


Without the agent running, it's just as scary:

Code:
% gpg --card-edit

scdaemon[15130]: can't select application `openpgp': Not supported
gpg: OpenPGP card not available: Not supported

gpg/card> scdaemon[15130]: updating slot 0 status: 0x0000->0x0007 (0->1)
% scdaemon[15130]: scdaemon (GnuPG) 2.0.26 stopped


Apart from that, it's working all right, except for the PGP part.

Code:
% ykinfo -a
serial: 3010629
serial_hex: 2df045
serial_modhex: dtvcfg
version: 3.3.0


The windows NEO manager application says the OpenPGP applet is installed, but without any version shown. Can this still be restored somehow?


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 22, 2014 7:19 am 
Offline
Site Admin
Site Admin

Joined: Wed Nov 14, 2012 2:59 pm
Posts: 666
Chexum.

Please contact support here: https://www.yubico.com/support/raise-ticket/

And refer them to this post, you are experiencing a known bug present of few versions of the 1.0.7 applet with the reset command.

Yubico apologize for the inconvenience.

Best Regards,
Tom.

_________________
-Tom


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 22, 2014 8:11 am 
Offline

Joined: Thu Aug 07, 2008 1:14 pm
Posts: 8
Location: Surrey, UK
Thank you Tom!

So as a summary, with versions before 1.0.8 (with NEOs 3.3+), it's probably not advised to use the ResetApplet procedures, and I should be much more careful with the Admin PIN, as it can only be fixed by replacement.

Embarrassing for me, but the support from this forum is very good, thanks again!


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 22, 2014 9:30 am 
Offline
Site Admin
Site Admin

Joined: Wed Nov 14, 2012 2:59 pm
Posts: 666
Hello,

it is just on version 1.0.7

You are welcome!

_________________
-Tom


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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