<PackageReference Include="Microsoft.Bcl.Cryptography" Version="11.0.0-preview.4.26230.115" />

System.Security.Cryptography.X509Certificates.X509CertificateLoader

public static class X509CertificateLoader
public static X509Certificate2 LoadCertificate(ReadOnlySpan<byte> data)

public static X509Certificate2 LoadCertificate(byte[] data)

public static X509Certificate2 LoadCertificateFromFile(string path)

public static X509Certificate2 LoadPkcs12(byte[] data, string password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2 LoadPkcs12(ReadOnlySpan<byte> data, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2Collection LoadPkcs12Collection(byte[] data, string password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2Collection LoadPkcs12Collection(ReadOnlySpan<byte> data, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2Collection LoadPkcs12CollectionFromFile(string path, string password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2Collection LoadPkcs12CollectionFromFile(string path, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2 LoadPkcs12FromFile(string path, string password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)

public static X509Certificate2 LoadPkcs12FromFile(string path, ReadOnlySpan<char> password, X509KeyStorageFlags keyStorageFlags = 0, Pkcs12LoaderLimits loaderLimits = null)