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> Dynamic engine loading support
[success]: SO_PATH:engine_pkcs11
[success]:ID:pkcs11
[success]:LIST_ADD:1
[success]:LOAD
[success]:MODULE_PATH:OCSCryptolib_P11.dll
Loaded: <pkcs11> pkcs11 engine
          [available]

 OpenSSL> rsautl -decrypt -in cipher.txt -out raw.txt -engine pkcs11
-keyform engine -inkey 0:k9n8788787888878ae8898989d -passin
file:password.txt
engine "pkcs11" set.
Loading 'screen' into random state - done

This works however if i use the below command it returns the following
error,

OpenSSL> engine -t dynamic -pre SO_engine_pkcs11 -pre ID:pkcs11 -pre
LIST_ADD:1 -pre Load -pre MODULE_PATH:OCSCryptolib_P11.dll -pre 'rsautl
-decrypt -in cipher.txt -out raw.txt -engine pkcs11 -keyform engine -inkey
0:k9n8788787888878ae8898989d -passin file:password.txt'

<dynamic> Dynamic engine loading support
[success]: SO_PATH:engine_pkcs11
[success]:ID:pkcs11
[success]:LIST_ADD:1
[success]:LOAD
[success]:MODULE_PATH:OCSCryptolib_P11.dll
[Failure]: rsautl -decrypt -in cipher.txt -out raw.txt -engine pkcs11
-keyform engine -inkey 0:k9n8788787888878ae8898989d -passin
file:password.txt 
5044:error:260AC089: engine routines:INT_CTRL_HELPER:invalid cmd
name:.\crypto\engine\eng_ctrl.c:134:
5044:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid cmd
name:.\crypto\engine\eng_ctrl.c:316:
Loaded:<pkcs11> pkcs11 engine
       [ available ]


Why is this so??? it tearing me out!!! pls help!!!






-- 
View this message in context: 
http://www.nabble.com/RSA-decryption-and-pkcs11-engine-load-in-the-same-line-problem-tp25235672p25235672.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to