Managing Smart Card Token Modules
A smart card token module is middleware that provides programmatic access to smart cards and keys, as well as to the cryptographic assets they store. 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.
Below, you will find basic commands for managing installed smart card token modules. For more details refer to Apple's support documentation.
List Installed Smart Card Token Modules
To check which smart card token modules are installed on macOS:
-
Open Terminal.
-
Run the following command:
pluginkit -m -p com.apple.ctk-tokens
This command lists the currently installed and registered smart card token modules.
If ActivClient is installed, the output might look like this:
com.hidglobal.ia.activclient.ctk.token(1.0)
com.apple.CryptoTokenKit.pivtoken(1.0)
com.apple.PlatformSSOToken(1.0)
com.appleCryptoTokenKit.ctkcard.ctkcardtoken(1).
-
com.hidglobal.ia.activclient.ctk.token – the ActivClient CTK token module
-
com.apple.CryptoTokenKit.pivtoken – Apple’s built-in PIV token module (for PIV-compliant smart cards)
Disable a Smart Card Token Module
To disable a specific smart card token module:
-
Open Terminal.
-
Run the following command, replacing <token> with the actual name of the module you wish to disable. See List Installed Smart Card Token Modules to review how to find the module's name.
sudo security smartcards token -d <token>
-
To disable the built-in Apple PIV card support and avoid conflicts with ActivClient, use the following command:
sudo security smartcards token -d com.apple.CryptoTokenKit.pivtoken
-
To disable the ActivClient CTK module, use the following command:
sudo security smartcards token -d com.hidglobal.ia.activclient.ctk.token
Enable a Smart Card Token Module
To enable a specific smart card token module to be used in macOS authentication:
-
Open Terminal.
-
Run the following command, replacing <token> with the actual name of the module you wish to enable. See List Disabled Smart Card Token Modules to review how to find the disabled module's name.
sudo security smartcards token -e <token>
Replace <token> with the actual name of the disabled module you wish to enable.
To re-enable the built-in Apple PIV card support that has been disabled, use the following command:
sudo security smartcards token -e com.apple.CryptoTokenKit.pivtoken
List Disabled Smart Card Token Modules
To check whether some smart card token modules are disabled:
-
Open Terminal.
-
Run the following command:
sudo security smartcards token -l
This command displays a list of disabled modules.