C# 在Asp.net核心Web应用程序中实现https(SSL证书)
我正在为asp.net核心web应用程序实现“https”。以下是我这样做的原因:C# 在Asp.net核心Web应用程序中实现https(SSL证书),c#,ssl,C#,Ssl,我正在为asp.net核心web应用程序实现“https”。以下是我这样做的原因: 安装nuget软件包:Microsoft.AspNetCore.Server.Kestrel.Https .UseKestrel(options=>{options.listenyip(5556,listenOptions=>{listenOptions.UseHttps(“d:\\my-cert.pfx”,“password”);})。useURL(https://FQDN:5556) 出现错误: System
Microsoft.AspNetCore.Server.Kestrel.Https
.UseKestrel(options=>{options.listenyip(5556,listenOptions=>{listenOptions.UseHttps(“d:\\my-cert.pfx”,“password”);})。useURL(https://FQDN:5556)
config.json
文件中指定证书和密码
"app": {
"programmPath": "C:\\webapp",
"webserver": "https://FQDN:5556",
"Cert" : "my-cert.pfx",
"pwd":"password" -> this will be exposed, how to handle this?
}