Nitrokey / nitrokey-documentation

User documentation of Nitrokey's products
https://docs.nitrokey.com
33 stars 38 forks source link

Update reset.rst.inc #167

Closed NB2455 closed 1 year ago

NB2455 commented 1 year ago

ticket no #155: Describe reset commands for all applications. simple syntax edits with new section defining PIV smartcard reset section.

jans23 commented 1 year ago

AFAIK this command doesn't reset PIV but overwrites a certificate.

sosthene-nitrokey commented 1 year ago

Doesn't opensc-tool -s 00:A4:04:00:0B:A000000308000010000100 -s 00:FB:00:00 work? It should actually completely reset the PIV application, not just the certificate.

sosthene-nitrokey commented 1 year ago

More accurately, opensc-tool -s 00:A4:04:00:0B:A000000308000010000100 -s 00:20:00:80:08:FFFFFFFFFFFFFFFF -s 00:20:00:80:08:FFFFFFFFFFFFFFFF -s 00:20:00:80:08:FFFFFFFFFFFFFFFF -s 00:FB:00:00 will first lock the application PIN to ensure that the reset works (unless the PIN is FFFFFFFFFFFFFFF.

sosthene-nitrokey commented 1 year ago

This PR will be replaced by #178