【发布时间】:2019-10-08 17:16:45
【问题描述】:
我为本地测试运行了一个自签名 (HTTPS) C# Web 服务器。我无法从在同一台 PC 中运行的其他 c# 应用程序访问此 C# application-1。其他应用程序显示错误
System.Net.Http.HttpRequestException:
System.Net.Http.CurlException: Peer certificate cannot be authenticated with given CA certificates
我的证书没有由 CA 签名。但我只在我的系统中运行我的应用程序。我还使用以下命令将我的证书添加到受信任的 CA 根存储中
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n "localhost" -i localhost.crt
但第二个 c# 应用程序仍然出现同样的错误。我的系统操作系统是 ubuntu 16.04
【问题讨论】:
标签: c# ssl https .net-core libcurl