On Mon, Jun 22, 2015 at 04:12:29AM +0530, Nayna Jain wrote: > I am trying to verify X509 certificate against two private keys such that > atleast one of them it should match. What do you mean by "match"? Was either key used to sign the certificate, or is one of the keys the public key of the subject? > X509_verify(x509, pkey) where pkey is of EVP_PKEY type This checks whether the key signed the certificate. -- Viktor.