Table of Contents

Reset the PIV application

Available for all YubiKeys with the PIV application except for YubiKey Bio Multi-protocol Edition (MPE) keys. For YubiKey Bio MPE, use the device-wide reset instead.

Command APDU Info

CLA INS P1 P2 Lc Data Le
00 FB 00 00 (absent) (absent) (absent)

Response APDU Info

Response APDU for RESET PIV (success)

Total Length: 2
Data Length: 0

Data SW1 SW2
(no data) 90 00

Response APDU for RESET PIV (did not reset, PIN or PUK not blocked)

Total Length: 2
Data Length: 0

Data SW1 SW2
(no data) 69 85

Examples

$ opensc-tool -c default -s 00:a4:04:00:09:a0:00:00:03:08:00:00:10:00
  -s 00:fb:00:00
Using reader with a card: Yubico YubiKey OTP+FIDO+CCID 0
Sending: 00 A4 04 00 09 A0 00 00 03 08 00 00 10 00
Received (SW1=0x90, SW2=0x00):
61 11 4F 06 00 00 10 00 01 00 79 07 4F 05 A0 00
00 03 08
Sending: 00 FB 00 00
Received (SW1=0x90, SW2=0x00)