Class ManagedCertificateFile
Loads a managed PFX or returns a policy-controlled self-signed recovery certificate.
Inherited Members
Namespace: Eigenverft.NetLib.Infrastructure.Security.Certificates
Assembly: Eigenverft.NetLib.Infrastructure.dll
Syntax
public static class ManagedCertificateFile
Methods
| Edit this page View SourceLoadOrCreate(ManagedCertificateFileOptions)
Loads a valid managed PFX, or creates a self-signed recovery certificate when the file is missing, outside its validity period, unreadable, password-mismatched, or otherwise unusable.
Declaration
public static ManagedCertificateResult LoadOrCreate(ManagedCertificateFileOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedCertificateFileOptions | options | The managed-file and replacement description. |
Returns
| Type | Description |
|---|---|
| ManagedCertificateResult | A usable caller-owned certificate and the performed action. |
Remarks
PreserveExisting is the safe default: existing PFX files are never replaced, while a generated certificate remains available in memory. A persistence failure likewise does not discard a successfully generated certificate.