.net core在Linux环境下使用HttpClient请求https失败的解决方法

dotnet core在Linux(如:centOS)环境下使用HttpClient请求https可能会报异常:One or more errors occurred. (The SSL connection could not be established, see inner exception.) 设置如下环境变量暂时解决:e...

dotnet core在Linux(如:centOS)环境下使用HttpClient请求https可能会报异常:

One or more errors occurred. (The SSL connection could not be established, see inner exception.) 

设置如下环境变量暂时解决:

export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0

本文标题为:.net core在Linux环境下使用HttpClient请求https失败的解决方法

基础教程推荐