API Reference
Class
SmimeCertificateAnalysis
Parses S/MIME certificates from files and exposes basic information.
Inheritance
- Object
- SmimeCertificateAnalysis
Constructors
public SmimeCertificateAnalysis() #Methods
AnalyzeFile 2 overloads
public Void AnalyzeFile(String path) #Returns:
VoidLoads and analyses a certificate from path.
Parameters
- path System.String
- Path to the certificate file in DER or PEM format.
public Void AnalyzeFile(String directory, String fileName) #Returns:
VoidLoads a certificate from directory and file name using String).
Parameters
- directory System.String
- Directory containing the certificate.
- fileName System.String
- Certificate file name.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.