I have two X509
objects
X509 *cert1;
X509 *cert2;
How to I determine whether this two certificates are same or different? which property are identical for two same certificates?
I have two X509
objects
X509 *cert1;
X509 *cert2;
How to I determine whether this two certificates are same or different? which property are identical for two same certificates?
Copyright © 2021 Jogjafile Inc.
X509_cmp(const X509 *a, const X509 *b)
is perfect for byte by byte comparison of SHA_1 hash of two certificates. So @AlexBezuglyi is 100% correct. But actually I intended (but couldn't express in this question) to verify the server certificate whether its signed by the root certificate (trusted CA signed certificate).Using
X509_verify
The signature of int
X509_verify
isSuppose of you have root certificate in
root
and server certificate incert