Fixed build in "Configure ASP.NET Core Data Protection" (#22126)

pull/22130/head
Wim Devos 2021-04-24 13:31:53 +02:00 committed by GitHub
parent 790dc85160
commit a394a1aeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ public void ConfigureServices(IServiceCollection services)
.ProtectKeysWithCertificate(
new X509Certificate2("certificate.pfx", Configuration["MyPasswordKey"));
.UnprotectKeysWithAnyCertificate(
new X509Certificate2("certificate_old_1.pfx", Configuration["MyPasswordKey_1"),
new X509Certificate2("certificate_old_2.pfx", Configuration["MyPasswordKey_2"));
new X509Certificate2("certificate_old_1.pfx", Configuration["MyPasswordKey_1"]),
new X509Certificate2("certificate_old_2.pfx", Configuration["MyPasswordKey_2"]));
}
```