The function PEM_read_PUBKEY used in the pkcs11 engine sets only the values
relative to the public key, and the data relative to the private are left
blank. The public key, as far as i can understand, is used to find the
corresponding private key. If pkcs11 is the default RSA engine, everything
works fine, but if it is not default it gets in trouble. I have called the
ENGINE_load_private_key, then I have set by hand the right engine end
RSA_METHOD on the EVP_PKEY. It seems to run now ...

Thanks

Giovanni Calzuola

-----------------------------------------------------------------------
Siemens Informatica S.p.A.
via del Maggiolino, 161 - 00153 - Roma (Italy)
[EMAIL PROTECTED]
-----------------------------------------------------------------------


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to