Enum CertificateMaterialEncoding
- Namespace
- MailFathom.Infrastructure.Certificates
- Assembly
- MailFathom.Infrastructure.dll
Identifies how deployment-provisioned certificate material is encoded.
public enum CertificateMaterialEncoding
Fields
Der = 1A binary DER-encoded X.509 certificate.
Pem = 0Base64 text delimited by
-----BEGINand-----ENDmarkers.Pkcs12 = 2A binary PKCS#12 / PFX bundle, which may be protected by a password.
Unrecognized = 3The 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.