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

PGP reset yubikey 4
https://forum.yubico.com/viewtopic.php?f=26&t=2182
Page 1 of 1

Author:  mrzarzand [ Mon Jan 25, 2016 11:24 pm ]
Post subject:  PGP reset yubikey 4

Hello,
Please provide actual information for reset pgp applet on yubikey 4. I followed inctructions from https://developers.yubico.com/ykneo-ope ... pplet.html but looks like I've downgraded installed pgp on key. yubikey neo manager show yubikey neo but when I first inserted the key it was shown yubikey edge.

Author:  ChrisHalos [ Mon Feb 01, 2016 9:25 pm ]
Post subject:  Re: PGP reset yubikey 4

If the YubiKey 4 is identified as a YubiKey Edge, you need to update to the newest version of the YubiKey NEO Manager (v1.4.0 added support for the YubiKey 4 - https://developers.yubico.com/yubikey-n ... Notes.html).

The instructions for resetting the OpenPGP applet on the YubiKey 4 are the same as with the YubiKey NEO (https://developers.yubico.com/ykneo-ope ... pplet.html).

============================================

gpg-connect-agent --hex
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
D[0000] 69 82 i.
OK
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
D[0000] 69 82 i.
OK
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
D[0000] 69 82 i.
OK
> scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
D[0000] 69 83 i.
OK
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
D[0000] 69 82 i.
OK
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
D[0000] 69 82 i.
OK
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
D[0000] 69 82 i.
OK
> scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
D[0000] 69 83 i.
OK
> scd apdu 00 e6 00 00
D[0000] 90 00 ..
OK
> scd apdu 00 44 00 00
D[0000] 90 00 ..
OK
>

============================================

If you receive any errors, try the script method listed at the bottom of the instructions:

Put the following text into a script file and run it using gpg-connect-agent (gpg-connect-agent -r FILE).

/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 e6 00 00
scd apdu 00 44 00 00
/echo Card has been successfully reset.

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