mtrojnar / osslsigncode

OpenSSL based Authenticode signing for PE/MSI/Java CAB files
Other
729 stars 124 forks source link

Add '-login' option to force a login to PKCS11 engine #389

Closed koolscooby closed 1 month ago

koolscooby commented 2 months ago

When trying to use AWS CloudHSM's PCKS11 provider with osslsigncode, I found that providing the token pin via the -pass option failed, while entering it interactively when prompted by openssl-pkcs11 (from libp11) engine worked correctly.

After some debugging, I found that forcing an early login to the PKCS11 engine allowed the -pass option to work reliably. This adds a new -login option to FORCE_LOGIN for PKCS11 providers.