<html><body>
<p><font size="2" face="sans-serif">Hi,</font><br>
<br>
<font size="2" face="sans-serif">I am trying to verify X509 certificate against two private keys such that atleast one of them it should match.</font><br>
<font size="2" face="sans-serif">I used the API as </font><br>
<br>
<font size="2" face="sans-serif">X509_verify(x509, pkey) where pkey is of EVP_PKEY type</font><br>
<br>
<font size="2" face="sans-serif">However, for one of the private key it is failing with error "block type is not 01"    // And this key is supposed to be matching the certificate.</font><br>
<br>
<font size="2" face="sans-serif">and for other key it is failing with error "padding check failed"</font><br>
<br>
<font size="2" face="sans-serif">Can someone help me to understand these errors and how to fix, even though when I know the key with "block type error" does matches the certificate.</font><br>
<br>
<br>
<font size="2" face="sans-serif">Thanks & Regards,<br>
Nayna Jain</font></body></html>