Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 881
Tee-Jay Avatar asked Feb 28 '26 08:02

Tee-Jay


1 Answers

Looks like ProtectKeysWithCertificate is not available in .NET Core. Here is Damien's discussion on Twitter: https://twitter.com/damien_bod/status/698975038142353408

like image 106
Felix Avatar answered Mar 02 '26 13:03

Felix