Tee-Jay
Tee-Jay

Reputation: 733

Error calling .ProtectKeysWithCertificate(cert) Method in IdentitySer4 Resource Server Implementation

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

Answers (1)

Felix
Felix

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

Related Questions