services.AddDataProtection()
.SetApplicationName("Report Book Resource Server")
.PersistKeysToFileSystem(new DirectoryInfo(folderForKeyStore))
.ProtectKeysWithCertificate(cert);
最后一行“.ProtectKeysWithCertificate(cert);” 返回错误。但是这里的教程没有。我无法弄清楚为什么“ProtectKeysWithCertificate()”方法正在返回。如果有人可以放纵我,我将非常感激。
谢谢