【发布时间】:2020-09-23 20:38:42
【问题描述】:
我正在尝试在证书存储中为 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 证书存储中指定一个? 还是只能通过代码实现?
【问题讨论】: