smartcard

Tool overview: https://my.eng.utah.edu/~sdean/doc/Tools.html

Smartcard

  • List smartcard readers: opensc-tool -l
  • Scan smartcard readers regularly: pcsc_scan
  • List PKCS11 modules: p11-kit list-modules

(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>"
  • List all available private keys in a token: p11tool --list-all-trusted "<TOKEN URL>"
  • Test tokens: pkcs11-tool --module /usr/lib/opensc-pkcs11.so --login --test
  • Display objects: pkcs11-tool --module /usr/lib/opensc-pkcs11.so --login --list-objects
  • pkcs11-tool --list-token-slots
  • List all card objects (compact): pkcs15-tool --dump --short
  • List all card objects: pkcs15-tool --dump
  • pkcs15-tool --list-certificates
  • smartcard.txt
  • Last modified: 2020/12/29 02:09
  • by 127.0.0.1