Alain Damiral a écrit :
Verify normally verifies a certificate chain, I think this isn't quite
what the original poster is trying to achieve.
I think he is interested in what the SSL_CTX_check_private_key function
can achieve. However I don't know if there is an OpenSSL utility that
can do this. Maybe verify can indeed but after reading the documentation
I can't see how.
Gayathri Sundar wrote:
Probably you can try the openssl verify command?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Julien ALLANOS
Sent: Monday, February 06, 2006 6:38 PM
To: openssl-users@openssl.org
Subject: Testing private key - public key consistency
Hello,
is there a quick way/function to verify that a private (EVP_PKEY) key
matches a X509 certificate's public key?
thanks,
looks like:
int X509_verify(X509 *a, EVP_PKEY *r);
does the trick.
--
Julien ALLANOS
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]