Method ProtectKeysWithRedbIdentity(IDataProtectionBuilder, RedbIdentityOptions)
C10 — wires at-rest encryption for the DataProtection key-ring based on
. Variants (priority order):
custom KMS factory → certificate (PFX path > thumbprint) → AES-GCM master key.
If DataProtectionOptions.RequireAtRestEncryption is true
and is false and none of
the variants is configured, throws.
public static IDataProtectionBuilder ProtectKeysWithRedbIdentity(this IDataProtectionBuilder builder, RedbIdentityOptions options)