Reputation: 733
services.AddDataProtection()
.SetApplicationName("Report Book Resource Server")
.PersistKeysToFileSystem(new DirectoryInfo(folderForKeyStore))
.ProtectKeysWithCertificate(cert);
The last line ".ProtectKeysWithCertificate(cert);" returns error. However the tutorial here doesnt. I cant figure out why the method "ProtectKeysWithCertificate()" is returning. I will appreciate it very much if anybody out there could indulge me.
Thanks
Upvotes: 3
Views: 923
Reputation: 10078
Looks like ProtectKeysWithCertificate is not available in .NET Core. Here is Damien's discussion on Twitter: https://twitter.com/damien_bod/status/698975038142353408
Upvotes: 1