Skip to main content

Using Stunnel with smart cards

Stunnel is able to load OpenSC PKCS#11 engine using this configuration:

engine=dynamic
engineCtrl=SO_PATH:/usr/lib/opensc/engine_pkcs11.so
engineCtrl=ID:pkcs11
engineCtrl=LIST_ADD:1
engineCtrl=LOAD
engineCtrl=MODULE_PATH:/usr/lib/pkcs11/opensc-pkcs11.so
engineCtrl=INIT

[service]
engineNum=1
key=id_45

For a complete description of features, read Stunnel manpage.

Here it is!