macossmartcardsmartcard-reader

smartcard PKCS#11 support on MacOSX


Does the MacOSX provide any kind of API for accessing to smartcard contents via PKCS#11 interface?

I am looking for something similar to the Smart Card API Smart Card API provided by Windows.

Or similar to more recent Smart Card Minidrivers


Solution

  • Starting from macOS 10.10 there is a specific toolkit for interacting with smartcard and token.

    CryptoTokenKit

    A token is a storage repository for cryptographic items. When a token is present in the system—such as when the user physically inserts a smart card into a USB slot—the CryptoTokenKit framework exposes the token’s items to your app as standard keychain items. It does this by copying the items to the keychain when the token is inserted, and deleting them from the keychain when the token is removed.

    enter image description here