Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Security Namespace / SecurityUtils Class / GetCertificateChain Method / GetCertificateChain(String,String,X509RevocationMode,X509VerificationFlags) Method
The name of a .pfx or a .p12 file.
The password to use.
The revocation mode used to build the X509Chain.
The verification flags used to build the X509Chain.

In This Topic
    GetCertificateChain(String,String,X509RevocationMode,X509VerificationFlags) Method
    In This Topic
    Builds the chain of certificates from a specified file.
    Syntax
    '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.
    See Also