This is an old revision of the document!
Smartcard
- List smartcard readers:
opensc-tool -l - Scan smartcard readers regularly:
pcsc_scan - List PKCS11 modules:
p11-kit list-modules
p11tool
(sometimes it's necessary to provide the PKCS11 provider --provider=/usr/lib/opensc-pkcs11.so)
- List available tokens:
p11tool --list-tokens - List available token URLs:
p11tool --list-all - List all available objects in a token:
p11tool --list-all "<TOKEN URL>" - List all available certificates in a token:
p11tool --list-all-certs "<TOKEN URL>" - List all certificates that have an associated private key:
p11tool --list-certs "<TOKEN URL>" - List all available certificates marked as trusted:
p11tool --list-all-trusted "<TOKEN URL>"
WTF?
pkcs15-tool --list-certificatespkcs11-tool --list-token-slots