Reputation: 31
I am working on a test program using the Nitrokey HSM:
import pkcs11
lib = pkcs11.lib(os.environ['PKCS11_MODULE'])
token = lib.get_token(token_label='smartcard')
with token.open() as session:
print(session)
Question: what can be the pkcs11 library file name? I guessed opensc-hsm.so
, and defined PKCS11_MODULE to that path, but was not successful.
So, what can be the name of a pkcs11 library to be loaded?
Thanks
Upvotes: 3
Views: 2671
Reputation: 33
According to this pkcs11 page on Nitrokey HSM, the standard OpenSC module can be used:
The OpenSC PKCS #11 module is opensc-pkcs11.so.
Alternative is to use the HSM smart card vendor's module libsc-hsm-pkcs11.so
:
For more information please look at these:
Upvotes: 3