openssl question

2009-09-14 Thread nutters
I am trying to write an application that uses OpenSSL to decrypt a RSA encrypted secretkey using the privatekey in a smartcard. I am tring to use commandline to do this but I can't load the PKCS11 engine and do decryption on the same commandline. The PKCS11 engine unloads everytime OpenSSL exits.

RSA decryption and pkcs11 engine load in the same line problem

2009-09-01 Thread nutters
hi all, Does anyone know how do i combine the loading of engine and decryption command all in the same line? i did this and this works OpenSSL> engine -t dynamic -pre SO_engine_pkcs11 -pre ID:pkcs11 -pre LIST_ADD:1 -pre Load -pre MODULE_PATH:OCSCryptolib_P11.dll Dynamic engine loading suppor