Certificate Class
Namespace: iCore.Public.Crypto.X509Certificates
Assembly: iCore.Public.Crypto.dll
Class for creating ICertificate objects.
- C#
- VB
public static class Certificate
Public Shared MustInherit NotInheritable Class Certificate
Inheritance object 🡒 Certificate
Methods​
Name | Description |
---|---|
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. |