Table of Contents

Enum CertificateMaterialEncoding

Namespace
MailFathom.Infrastructure.Certificates
Assembly
MailFathom.Infrastructure.dll

Identifies how deployment-provisioned certificate material is encoded.

public enum CertificateMaterialEncoding

Fields

Der = 1

A binary DER-encoded X.509 certificate.

Pem = 0

Base64 text delimited by -----BEGIN and -----END markers.

Pkcs12 = 2

A binary PKCS#12 / PFX bundle, which may be protected by a password.

Unrecognized = 3

The material matches none of the supported encodings.

Remarks

The encoding is detected from the material rather than declared in configuration, because an operator who has to name the encoding of a file a certificate authority handed them can name it wrongly, and the resulting failure would describe a parse error instead of the mistake. It is a separate concept from the material's provenance: only Pem can be supplied inline, so a loader needs both to decide whether the material is acceptable.