'Declaration Public Overloads Shared Function GetCertificateChain( _ ByVal fileName As System.String, _ ByVal password As System.String, _ Optional ByVal revocationMode As System.Security.Cryptography.X509Certificates.X509RevocationMode, _ Optional ByVal verificationFlags As System.Security.Cryptography.X509Certificates.X509VerificationFlags _ ) As System.Security.Cryptography.X509Certificates.X509Certificate2()
public static System.Security.Cryptography.X509Certificates.X509Certificate2[] GetCertificateChain( System.string fileName, System.string password, System.Security.Cryptography.X509Certificates.X509RevocationMode revocationMode, System.Security.Cryptography.X509Certificates.X509VerificationFlags verificationFlags )
Parameters
- fileName
- The name of a .pfx or a .p12 file.
- password
- The password to use.
- revocationMode
- The revocation mode used to build the X509Chain.
- verificationFlags
- The verification flags used to build the X509Chain.
Return Value
The chain of certificates. The first element is the signing certificate, the last element is the certificate of CA.