我正在尝试在 gRPC .NET Core 3.1 的证书存储中指定一个证书。
我找到了一种通过设置路径来指定证书的方法。
https://medium.com/@mcilis/how-to-publish-net-core-grpc-server-as-a-windows-service-dd562a1e263d
"Certificates": {
"Default": {
"Path": "Your_Path_To_Certificate_Pfx",
"Password": "Pfx_File_Password"
}
}
但是是否可以使用 appsettings.json 在 Windows 证书存储中指定一个?还是只能通过代码实现?