Set the PIN to a new value
Inner command APDU info
CLA | INS | P1 | P2 | Lc | Data | Le |
---|---|---|---|---|---|---|
00 | 44 | 00 | 00 | data len | data | (absent) |
The data is encoded as
new PIN length (one byte) || current PIN || new PIN
If there is no current PIN, then the data will be encoded as
new PIN length (one byte) || new PIN
Response APDU info
Response APDU for successful setting the new PIN
Total Length: 2
Data Length: 0
Data | SW1 | SW2 |
---|---|---|
(no data) | 90 | 00 |
Response APDU for current PIN incorrect
Total Length: 2
Data Length: 0
Data | SW1 | SW2 |
---|---|---|
(no data) | 63 | C0 |
Response APDU for blocked PIN
Total Length: 2
Data Length: 0
Data | SW1 | SW2 |
---|---|---|
(no data) | 69 | 83 |
Response APDU for new PIN invalid length
Total Length: 2
Data Length: 0
Data | SW1 | SW2 |
---|---|---|
(no data) | 67 | 00 |
Response APDU for PIN not supported
If you try to set a U2F PIN on a non-FIPS YubiKey, a version 5 YubiKey (FIPS or non-FIPS), or a Security Key Series YubiKey, this is the response.
Total Length: 2
Data Length: 0
Data | SW1 | SW2 |
---|---|---|
(no data) | 6D | 00 |