Domain Detective

API Reference

Class

SmimeCertificateAnalysis

Namespace DomainDetective
Assembly DomainDetective

Parses S/MIME certificates from files and exposes basic information.

Inheritance

  • Object
  • SmimeCertificateAnalysis

Constructors

Methods

AnalyzeFile 2 overloads
public Void AnalyzeFile(String path) #
Returns: Void

Loads and analyses a certificate from path.

Parameters

path System.String requiredposition: 0
Path to the certificate file in DER or PEM format.
public Void AnalyzeFile(String directory, String fileName) #
Returns: Void

Loads a certificate from directory and file name using String).

Parameters

directory System.String requiredposition: 0
Directory containing the certificate.
fileName System.String requiredposition: 1
Certificate file name.

Properties

public X509Certificate2 Certificate { get; set; } #

Gets the loaded certificate.

public List<X509Certificate2> Chain { get; } #

Gets the certificate chain.

public Boolean IsValid { get; set; } #

Gets a value indicating whether the certificate chain is valid and trusted.

public Boolean IsTrustedRoot { get; set; } #

Gets a value indicating whether the certificate chain is rooted in a trusted store.

public Boolean HasSecureEmailEku { get; set; } #

Gets a value indicating whether the certificate includes the Secure Email EKU.

public Int32 DaysToExpire { get; set; } #

Gets the number of days until the certificate expires.

public Int32 DaysValid { get; set; } #

Gets the total validity period in days.

public Boolean IsExpired { get; set; } #

Gets a value indicating whether the certificate is expired.

{{ include "footer" }}