<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.4.26230.115" />

System.Security.Cryptography.Pkcs.Pkcs12CertBag

public sealed class Pkcs12CertBag : Pkcs12SafeBag
Represents the PKCS#12 CertBag. This class cannot be inherited.
public ReadOnlyMemory<byte> EncodedCertificate { get; }

Gets the uninterpreted certificate contents of the CertSafeBag.

public bool IsX509Certificate { get; }

Gets a value indicating whether the content type of the encoded certificate value is the X.509 public key certificate content type.

public Pkcs12CertBag(Oid certificateType, ReadOnlyMemory<byte> encodedCertificate)

Initializes a new instance of the Pkcs12CertBag class using the specified certificate type and encoding.

Gets the contents of the CertBag interpreted as an X.509 public key certificate.

Gets the Object Identifier (OID) that identifies the content type of the encoded certificte value.