Skip to content

Instantly share code, notes, and snippets.

@ramann
Created March 6, 2016 02:56
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 ramann/69f8b0d0a153d1467ea1 to your computer and use it in GitHub Desktop.
Save ramann/69f8b0d0a153d1467ea1 to your computer and use it in GitHub Desktop.
=========== ~/openssl_pkcs11_engine.conf ==========
openssl_conf = openssl_def
[ openssl_def ]
engines = engine_section
[ engine_section ]
pkcs11 = pkcs11_section
[ pkcs11_section ]
engine_id = pkcs11
dynamic_path = /usr/lib/engines/engine_pkcs11.so
MODULE_PATH = /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
===================================================
➜ ~ OPENSSL_CONF=openssl_pkcs11_engine.conf openssl s_client -connect host:port -CAfile ca.crt -cert client.crt -engine pkcs11 -keyform engine -key slot_1-id_01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment