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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With