Certes
Show / Hide Table of Contents

Class CertificateChainExtensions

Extension methods for CertificateChain.

Inheritance
object
CertificateChainExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Certes
Assembly: Certes.dll
Syntax
public static class CertificateChainExtensions

Methods

| Edit this page View Source

ToPem(CertificateChain, IKey)

Encodes the full certificate chain in PEM.

Declaration
public static string ToPem(this CertificateChain certificateChain, IKey certKey = null)
Parameters
Type Name Description
CertificateChain certificateChain

The certificate chain.

IKey certKey

The certificate key.

Returns
Type Description
string

The encoded certificate chain.

Remarks

When a key is supplied, verifies that it matches the leaf certificate. This does not validate the certificate chain or establish trust in it.

| Edit this page View Source

ToPfx(CertificateChain, IKey)

Converts the certificate to PFX with the key.

Declaration
public static PfxBuilder ToPfx(this CertificateChain certificateChain, IKey certKey)
Parameters
Type Name Description
CertificateChain certificateChain

The certificate chain.

IKey certKey

The certificate private key.

Returns
Type Description
PfxBuilder

The PFX.

  • Edit this page
  • View Source
© 2018 Certes Project
Back to top