Hi Mounir, > Your file pk.der contains a public key encoded as a SubjectPublicKeyInfo > and NOT as a PKCS#1 encoding. So, you should use the function > d2i_RSA_PUBKEY instead of d2i_RSAPublicKey in order to read the public > key.
Ah I thought I tried this one but apparently I did not. It works indeed, thanks !! Could someone please explain to me the difference between these two encodings ? I know almost nothing about these things. A pointer to a good documentatiion would be enough ! Cheers, and thanks for helping MOuunir, Sébastien. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org