Search code examples
c#.netcertificatex509certificate

How to validate X509 certificate?


I have to write a tool which validates if a X509 certificate is valid or not (input = cert path / subject and password). How can I do that? I don't know much about certs...


Solution

  • Take a look at X509Certificate2.Verify()