Setting up Pk11 token access
Family Bostrom <[email protected]>
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <CAPOU+k+Ym0jauE4zU_Fu_9Ey9Rt-9mkGb-qxtBx4oBax_E1ryQ@mail.gmail.com> |
Hello everyone, I have a strange behavior trying to connect and use the certificates from a Spyrus LYNKS Series II HSM Pk#11 token. Basically the problem boils down to the fact that registering the driver to cryptlib by the code (snip) fails: statusFromCL1 = cryptInit(); statusFromCL2 = cryptSetAttributeString ( CRYPT_UNUSED, CRYPT_OPTION_DEVICE_PKCS11_DVR01, <path to driver in system32><length of string>); statusFromCL3 = cryptSetAttribute ( CRYPT_UNUSED,CRYPT_OPTION_CERT_VALIDITY, 2000 ); statusFromCL4 = cryptSetAttribute ( CRYPT_UNUSED,CRYPT_OPTION_CONFIGCHANGED, FALSE ); When calling the last function, there is an internal error in cryptlib 3.4 with reference to .\kernel\obj_acc.c, line 350 (this also applies to version 3.3) HOWEVER, for cryptlib 3.2.X it works! What can this be?! Have someone seen this before? I know that the token I call is old. I think it was released in 2005-2006 but it should still work in my opinion. Thanks, GB _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.