Functions

The API can perform the following operations:

  • Enumerating all connected smart card readers, getting reader name and state (reader type, card presence, …)

  • Reader event detection (card insertion/withdrawal, reader plug/unplug)

  • Connecting to a card, disconnecting from a card

  • Getting card information (label, manufacturer, model, serial number, …)

  • Getting PIN information (number of PINs, label of each PIN, status, …)

  • PIN verification, change, and unblocking

  • Enumerating card objects (certificates, keys, …)

  • Getting object properties (object type, PKCS label and ID, …)

  • For certificates, getting textual representation of X.509 attributes (subject, issuer, validity period, key usages, extensions, …)

  • Getting the full PEM-encoded contents of a certificate

  • Performing cryptographic operations with the private keys (signature, decryption)