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

NEO OpenGPG card is permanently locked! Can it be unlocked?
https://forum.yubico.com/viewtopic.php?f=26&t=1477
Page 1 of 1

Author:  dodver [ Tue Sep 30, 2014 2:22 pm ]
Post subject:  NEO OpenGPG card is permanently locked! Can it be unlocked?

gpg/card> generate

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[2723]: card is permanently locked!
gpg: error clearing forced signature PIN flag: Bad PIN

Can it be unlocked? Anyhow?

Author:  Tom [ Wed Oct 01, 2014 8:47 am ]
Post subject:  Re: NEO OpenGPG card is permanently locked! Can it be unlock

What firmware is your Yubikey NEO?

Author:  dodver [ Wed Oct 01, 2014 9:09 am ]
Post subject:  Re: NEO OpenGPG card is permanently locked! Can it be unlock

@Tom, it's version 3.1.2

@Anybody else, including Tom. :)

Follow these steps at your own risk!

Please NOTE:
If you follow this procedure you will lose all existing keys!

Meanwhile I managed to upload a new version of the openPGP applet to my NEO and that solved my problem. Tools you would need to do that:

- GPshell from GlobalPlatform (http://sourceforge.net/projects/globalplatform/files/GPShell/)
- Yubikey NEO openPGP applet (https://developers.yubico.com/ykneo-openpgp/ | Release: https://developers.yubico.com/ykneo-openpgp/releases.html)
- Yubikey NEO openPGP applet gpinstall.txt for uploading via GPShell (Avaible from Github: https://github.com/Yubico/ykneo-openpgp)

Don't forget to change the path to point it to your "openpgpcard.cap" file!

Code:
install -file ./applet/bin/openpgpcard/javacard/openpgpcard.cap -instParam 00 -priv 00


After successful upload you will have an empty openPGP card ready to use.

Author:  Tom [ Wed Oct 01, 2014 9:51 am ]
Post subject:  Re: NEO OpenGPG card is permanently locked! Can it be unlock

Well Done

Please NOTE:

If you follow this procedure you will lose all existing keys!

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