Exit codes
cryptnox-id exits non-zero on any failure; the code identifies the failure class.
With --json, errors are also emitted as a JSON object carrying the matching
machine token (see JSON output).
Code |
Token |
Meaning |
|---|---|---|
0 |
— |
Success. |
1 |
|
Generic CLI error not covered by a more specific class. |
2 |
— / |
Command-line usage error (unknown option, bad parameter). Also used by one DESFire transport-limit error. |
3 |
|
No usable reader/card, or a required secret could not be obtained safely (e.g. no TTY for a prompt and no environment variable). |
4 |
|
The OS refused card access — on Windows this is the FIDO applet without an Administrator terminal. |
5 |
|
The requested function is not reachable on this card/interface. |
6 |
|
The card rejected a command (the message carries the ISO status word). |
7 |
|
SCP03 secure-channel failure (wrong admin keys, cryptogram mismatch). |
8 |
|
Pre-personalization profile parse/validation failure. |
9 |
|
A DESFire command returned an error status. |
10 |
|
A FIDO2/CTAP command returned an error status. |
11 |
|
DESFire secure-messaging (session/MAC) failure. |