Thanks Victor,

I want to match the certificate with the private key for whose public key
that certificate is provided.

If this verifies who signed the certificate, then how do I verify whether
the certificate provided is for the private key which was generated,

Thanks & Regards,
Nayna Jain



From:   Viktor Dukhovni <[email protected]>
To:     [email protected], [email protected]
Date:   06/22/2015 07:39 AM
Subject:        Re: [openssl-dev] [openssl-users] X509_verify() error - block
            type        is not 01
Sent by:        "openssl-dev" <[email protected]>



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.
_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to