I have two X509Certificate2
s. Call them toCheck
and checkWith
.
How can I check that toCheck
was signed by the private key of checkWith
?
Basically, I want the C# equivalent of Java's
toCheck.verify(checkWith.getPublicKey());
Thanks
I'm not sure what the value of that would be. What if the certificate used to sign (checkWith) was revoked? It sounds like you'd have a false sense of validation.
If you want to validate a certificate, you can use the X509Certificate2.Verify method
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.