<PackageReference Include="Relativity.Server.Utility.SDK" Version="14.2.7" />

X509Certificate2Proxy

Wraps an instance of X509Certificate2.
public string DnsIssuedToName { get; }

Gets the DNS name of the server to which this certificate was issued.

public string DnsIssuerName { get; }

Gets the certificates DNS issuer name and subject.

public string FriendlyName { get; set; }

Gets or sets the friendly name of this certificate.

public byte[] GetCertHash { get; }

Gets the certificate's hash.

public IntPtr Handle { get; }

Gets the handle to the unmanaged representation of this certificate.

public bool IsExpired { get; }

Indicates whether or not this certificate is still valid.

public string Issuer { get; }

Gets the name of the certificate authority that issued this certificate.

public bool IsSystemValid { get; }

Inidicates whether or not this chain of trust associated with this certificate is valid.

public bool IsValidInLocalDomain { get; }

Indicates whether or not the certificate is valid in the local domain.

public DateTime NotAfter { get; }

Gets the expiration date of this certificate.

public DateTime NotBefore { get; }

Gets the date on which this certificate becomes valid.

Gets a reference to this certificate.

public string ParentStoreName { get; set; }

Gets or sets the parent store in which this certificate is stored.

public byte[] RawData { get; }

Gets the raw byte data of this certificate.

public string SimpleIssuedTo { get; }

Gets the simple name of the server to which this certificate was issued.

public string SimpleIssuer { get; }

Gets the certificates simple issuer name and subject.

public string Subject { get; }

Gets the subject of this certificate.

public string Thumbprint { get; }

Gets the thumbprint of this certificate.

public bool Verify { get; }

Inidicates whether or not this chain of trust associated with this certificate is valid.

public X509Certificate2Proxy(X509Certificate2 certificateObject)

Initializes a new instance of X509Certificate2Proxy with the provided backing certificate.

public X509Certificate2Proxy(X509Certificate2 certificateObject, string storeName)

Initializes a new instance of X509Certificate2Proxy with the provided backing certificate and store name.

public X509Certificate2Proxy(string certificateFile, string storeName)

Initializes a new instance of X509Certificate2Proxy with the provided certificate file name and in the specified. store.

public X509Certificate2Proxy(string certificateFile, string storeName, string password)

Initializes a new instance of X509Certificate2Proxy with the provided certificate file name and in the specified. store.

public string GetNameInfo(X509NameType nameType, bool forIssuer)

Gets the full name of this certificate.

protected string[] GetSplitDomain(string domainString)

Gets the domain split of the provided string.

E.g "http://foo.bar.baz.com/" -> {"foo","bar","baz","com"}

protected void ImportCertificate(X509Certificate2 originalCert, string storeName)

protected bool IsLocallyValid(string givenDomain, string domain)

Indicates whether or not the given domain is valid in the local domain.