How to verify validity of certificates with .NET

Hi all,   The other day a customer of mine was trying to verify the validity of a certificate with a .NET code like the following: Dim cert As X509Certificate2 = New X509Certificate2(filename) Dim chain As New X509Chain() chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain chain.ChainPolicy.RevocationMode = X509RevocationMode.Online chain.ChainPolicy.VerificationFlags = _ X509VerificationFlags.IgnoreCtlSignerRevocationUnknown Or _ X509VerificationFlags.IgnoreRootRevocationUnknown Or _ X509VerificationFlags.IgnoreEndRevocationUnknown Or…

0