0

我正在尝试在 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 证书存储中指定一个?还是只能通过代码实现?

4

1 回答 1

0

当我看到堆栈跟踪时,我找到了答案。

证书配置

https://github.com/dotnet/aspnetcore/blob/a190fd34854542266956b1af980c19afacb95feb/src/Servers/Kestrel/Core/src/Internal/ConfigurationReader.cs

这些是 Windows 证书存储的参数。

  • 主题
  • 店铺
  • 地点
  • 允许无效
于 2020-09-23T12:38:42.923 回答