X509CertificateLoader Class

Definition

Provides methods for loading an X.509 certificate or a PKCS#12 PFX that contains certificates.

C#
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static class X509CertificateLoader
C#
public static class X509CertificateLoader
Inheritance
X509CertificateLoader
Attributes

Methods

LoadCertificate(Byte[])

Loads a single X.509 certificate from data, in either the PEM or DER encoding.

LoadCertificate(ReadOnlySpan<Byte>)

Loads a single X.509 certificate from data, in either the PEM or DER encoding.

LoadCertificateFromFile(String)

Loads a single X.509 certificate (in either the PEM or DER encoding) from the specified file.

LoadPkcs12(Byte[], String, X509KeyStorageFlags, Pkcs12LoaderLimits)

Loads the provided data as a PKCS#12 PFX and extracts a certificate.

LoadPkcs12(ReadOnlySpan<Byte>, ReadOnlySpan<Char>, X509KeyStorageFlags, Pkcs12LoaderLimits)

Loads the provided data as a PKCS#12 PFX and extracts a certificate.

LoadPkcs12Collection(Byte[], String, X509KeyStorageFlags, Pkcs12LoaderLimits)

Loads the provided data as a PKCS#12 PFX and returns a collection of all of the certificates therein.

LoadPkcs12Collection(ReadOnlySpan<Byte>, ReadOnlySpan<Char>, X509KeyStorageFlags, Pkcs12LoaderLimits)

Loads the provided data as a PKCS#12 PFX and returns a collection of all of the certificates therein.

LoadPkcs12CollectionFromFile(String, ReadOnlySpan<Char>, X509KeyStorageFlags, Pkcs12LoaderLimits)

Opens the specified file, reads the contents as a PKCS#12 PFX and extracts a certificate. Loads the provided data as a PKCS#12 PFX and returns a collection of all of the certificates therein.

LoadPkcs12CollectionFromFile(String, String, X509KeyStorageFlags, Pkcs12LoaderLimits)

Opens the specified file, reads the contents as a PKCS#12 PFX and extracts a certificate. Loads the provided data as a PKCS#12 PFX and returns a collection of all of the certificates therein.

LoadPkcs12FromFile(String, ReadOnlySpan<Char>, X509KeyStorageFlags, Pkcs12LoaderLimits)

Opens the specified file, reads the contents as a PKCS#12 PFX and extracts a certificate.

LoadPkcs12FromFile(String, String, X509KeyStorageFlags, Pkcs12LoaderLimits)

Opens the specified file, reads the contents as a PKCS#12 PFX and extracts a certificate.

Applies to

Product Versions
.NET 8 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)