Enum PivKeyStatus
This enum lists the possible status values of a key in a PIV slot.
public enum PivKeyStatus
Fields
Default = 3
A PIN, PUK, or management key can have the default value
(PIN is "123456", PUK is "12345678", management key is 0x0102030405060708 three times).Generated = 1
A private key was generated by the YubiKey in the secure element.
Imported = 2
A private key was imported from off the YubiKey.
NotDefault = 4
The PIN, PUK, or management key is not the default value.
It is not possible to have the YubiKey report the actual value.Unknown = 0
If there is no key in a slot, its status is Unknown.
Remarks
The PIN, PUK, or management key can be default, an asymmetric key can be imported or generated. If there is no key in the slot the status is Unknown.