<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />

Certificate

public sealed class Certificate
Parsing and encoding of a Certificate struct from RFC 4346.
public sealed class ParseOptions

public static readonly Certificate EmptyChain

public static readonly Certificate EmptyChainTls13

public short CertificateType { get; }

public bool IsEmpty { get; }

public int Length { get; }

public Certificate(TlsCertificate[] certificateList)

public Certificate(byte[] certificateRequestContext, CertificateEntry[] certificateEntryList)

public Certificate(short certificateType, byte[] certificateRequestContext, CertificateEntry[] certificateEntryList)

public static Certificate Parse(ParseOptions options, TlsContext context, Stream messageInput, Stream endPointHashOutput)

Parse a Certificate from a Stream.

public void Encode(TlsContext context, Stream messageOutput, Stream endPointHashOutput)

Encode this Certificate to a Stream, and optionally calculate the "end point hash" (per RFC 5929's tls-server-end-point binding).

public TlsCertificate GetCertificateAt(int index)