Reset

Version 2.0 cards only!

$ gpg-connect-agent
> /hex
> scd serialno
S SERIALNO D0 0
OK
> /echo Lock the user PIN by trying 4 times with a wrong PIN
Lock the user PIN by trying 4 times with a wrong PIN
> 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
> /echo Locked user PIN
Locked user PIN
> /echo Lock the admin PIN by trying 4 times with a wrong PIN
Lock the admin PIN by trying 4 times with a wrong PIN
> 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
> /echo Locked admin PIN
Locked admin PIN
> /echo Terminate the application
Terminate the application
> scd apdu 00 44 00 00
D[0000] 90 00                                               ..
OK
> /echo Reactivate the application
Reactivate the application
> scd apdu 00 e6 00 00
D[0000] 90 00                                               ..
OK
> /echo card has been reset to factory defaults
card has been reset to factory defaults
> /bye