首页 新闻 会员 周边

.net core在macos平台上请求HTTPS出错

0
悬赏园豆:50 [待解决问题]

.net core在macos平台上请求HTTPS出错,具体错误:

{System.PlatformNotSupportedException: The handler does not support custom handling of certificates with this combination of libcurl (7.60.0) and its SSL backend ("OpenSSL/1.0.2h")

之前在CentOS上遇到过这个错误,把curl重新编译替换一下就好了,但是mac上不知道怎么弄,哪位大佬帮忙解答一下

Lyghost的主页 Lyghost | 初学一级 | 园豆:78
提问于:2018-06-04 07:24
< >
分享
所有回答(1)
0

用的是 .net core 2.1 吗?2.1 已经不依赖 libcurl

dudu | 园豆:31007 (高人七级) | 2018-06-04 10:17

现在用的是2.0,现在2.1已经正式发布了吗?

支持(0) 反对(0) Lyghost | 园豆:78 (初学一级) | 2018-06-04 10:55

@Lyghost: 正式发布了,详见 .NET Core 2.1 发布

支持(0) 反对(0) dudu | 园豆:31007 (高人七级) | 2018-06-04 11:06

@dudu: 嗯嗯,之前你们用2.0开发的时候遇到过这个问题吗?怎么解决的?

支持(0) 反对(0) Lyghost | 园豆:78 (初学一级) | 2018-06-04 13:08

@Lyghost: 出现这个问题可能是openssl版本不对,试试下面的方法(来源):

brew update
brew install openssl
mkdir -p /usr/local/lib
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
支持(0) 反对(0) dudu | 园豆:31007 (高人七级) | 2018-06-04 13:43

@dudu: 好的,一会我试试,谢谢dudu

支持(0) 反对(0) Lyghost | 园豆:78 (初学一级) | 2018-06-04 15:33
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册