Skip to content

Instantly share code, notes, and snippets.

@s2t2
Created March 9, 2018 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s2t2/819ff7e6bcfb9c4809df340161935691 to your computer and use it in GitHub Desktop.
Save s2t2/819ff7e6bcfb9c4809df340161935691 to your computer and use it in GitHub Desktop.
reading piv/cac cards
brew install opensc
opensc-tool -n
pkcs15-tool --list-public-keys
pkcs15-tool --read-public-key 1
pkcs15-tool --read-certificate 1 | openssl x509 -noout -text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment