Skip to main content
Version: 4.4.0

Certificate Class

Namespace: iCore.Public.Crypto.X509Certificates
Assembly: iCore.Public.Crypto.dll

Class for creating ICertificate objects.

public static class Certificate

Inheritance object 🡒 Certificate

Methods

NameDescription
CreateFrom(System.Security.Cryptography.X509Certificates.X509Certificate2)Creates a new instance of ICertificate from the specified .NET X509Certificate2.
GetFirstInSystemStoreByIssuerAndSerialNumber(iCore.Public.Crypto.X509Certificates.CertificateStoreLocation, string, string, string, bool)Finds the first certificate matching the given issuer and serial number from the given system X.509 certificate store.
GetFirstInSystemStoreByThumbprint(iCore.Public.Crypto.X509Certificates.CertificateStoreLocation, string, string)Finds the first certificate matching the given SHA1 thumbprint from the given system X.509 certificate store.
LoadCertificate(string, string)Creates a new instance of ICertificate from specified file. The supported formats are DER, PEM, PFX, SPC.
LoadCertificate(System.IO.Stream, string)Creates a new instance of ICertificate from stream that contains the certificate data. The supported formats are DER, PEM, PFX, SPC.