<html><body>
<p><font size="2" face="sans-serif">Thanks Victor,</font><br>
<br>
<font size="2" face="sans-serif">I want to match the certificate with the private key for whose public key that certificate is provided.</font><br>
<br>
<font size="2" face="sans-serif">If this verifies who signed the certificate, then how do I verify whether the certificate provided is for the private key which was generated,</font><br>
<br>
<font size="2" face="sans-serif">Thanks & Regards,<br>
Nayna Jain</font><br>
<br>
<img width="16" height="16" src="cid:1__=EABBF4FFDF9ECEE68f9e8a93df938@in.ibm.com" border="0" alt="Inactive hide details for Viktor Dukhovni ---06/22/2015 07:39:00 AM---On Mon, Jun 22, 2015 at 04:12:29AM +0530, Nayna Jain wrot"><font size="2" color="#424282" face="sans-serif">Viktor Dukhovni ---06/22/2015 07:39:00 AM---On Mon, Jun 22, 2015 at 04:12:29AM +0530, Nayna Jain wrote: > I am trying to verify X509 certificate</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Viktor Dukhovni <openssl-users@dukhovni.org></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">openssl-users@openssl.org, openssl-dev@openssl.org</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">06/22/2015 07:39 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [openssl-dev] [openssl-users] X509_verify() error - block type      is not 01</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Sent by:   </font><font size="1" face="sans-serif">"openssl-dev" <openssl-dev-bounces@openssl.org></font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">On Mon, Jun 22, 2015 at 04:12:29AM +0530, Nayna Jain wrote:<br>
<br>
> I am trying to verify X509 certificate against two private keys such that<br>
> atleast one of them it should match.<br>
<br>
What do you mean by "match"?  Was either key used to sign the<br>
certificate, or is one of the keys the public key of the subject?<br>
<br>
> X509_verify(x509, pkey) where pkey is of EVP_PKEY type<br>
<br>
This checks whether the key signed the certificate.<br>
<br>
-- <br>
                 Viktor.<br>
_______________________________________________<br>
openssl-dev mailing list<br>
To unsubscribe: </font></tt><tt><font size="2"><a href="https://mta.openssl.org/mailman/listinfo/openssl-dev">https://mta.openssl.org/mailman/listinfo/openssl-dev</a></font></tt><tt><font size="2"><br>
<br>
</font></tt><br>
</body></html>