Class DataProtectionCertificateOptions

Assembly: redb.Identity.Core.dll

X.509 certificate selector for the DataProtection key-ring encryptor.
Either (local store lookup) or
(file on disk, optional password) must be set. If both are set, the PFX path wins.

public sealed class DataProtectionCertificateOptions

Inheritance

Object→DataProtectionCertificateOptions

Properties

IsConfigured

True when at least one source is set (thumbprint or PFX path).

public bool IsConfigured { get; }

PfxPassword

Password for the PFX file. Leave null for password-less PFX.

public string? PfxPassword { get; set; }

PfxPath

Path to a PFX/PKCS#12 file on disk. Mutually exclusive-ish with .

public string? PfxPath { get; set; }

StoreLocation

Certificate store location. Default: CurrentUser. Use LocalMachine

public string StoreLocation { get; set; }

StoreName

Certificate store name when looking up by thumbprint. Default: My.

public string StoreName { get; set; }

Thumbprint

SHA-1 (or SHA-256) thumbprint of the certificate to look up. Case- and whitespace-insensitive.

public string? Thumbprint { get; set; }