DataProtectionBuilderExtensions.UnprotectKeysWithAnyCertificate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures certificates which can be used to decrypt keys loaded from storage.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UnprotectKeysWithAnyCertificate(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, ... cli::array <System::Security::Cryptography::X509Certificates::X509Certificate2 ^> ^ certificates);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UnprotectKeysWithAnyCertificate (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, params System.Security.Cryptography.X509Certificates.X509Certificate2[] certificates);
static member UnprotectKeysWithAnyCertificate : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * System.Security.Cryptography.X509Certificates.X509Certificate2[] -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UnprotectKeysWithAnyCertificate (builder As IDataProtectionBuilder, ParamArray certificates As X509Certificate2()) As IDataProtectionBuilder
Parameters
- builder
- IDataProtectionBuilder
- certificates
- X509Certificate2[]
Certificates that can be used to decrypt key data.
Returns
A reference to the IDataProtectionBuilder after this operation has completed.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for