Good morning, I have created two certificates. One is a self-signed certificate (ca.pem) and the other is a none self-signed certificate (cert.pem) signed with the first certificate (ca.pem). When I use the DOS command "openssl verify -CAfile ca.pem cert.pem" in a DOS windows, the response given is "cert.pem : ok".
In my C++ code, I get the public key of the self-signed certificate (ca.pem) with the X509_get_pubkey function. Then, I use this public key with the X509_verify (cert.pem, public key) function in order to verify the none self-signed certificate (cert.pem) signature. But, the X509_verify function always returns -1. I do not know what the problem is. Could you please help me to find what's wrong, and what I have to do to solve the problem ? I use win32 openssl 0.9.8g Thank you, Regards. ____________________________________________________ Plongez dans les tubes de cet été 2009 avec Musiline sur http://musiline.voila.fr/player/createtag/935919 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org