加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 创业 > C语言 > 正文

curl: (35) Server aborted the SSL handshake

发布时间:2020-12-15 00:46:28 所属栏目:C语言 来源:网络整理
导读:网上各种答案,各种不靠谱。 更新版本即可(7.45及以上都可以)。老版本对ssl3可能兼容不好。 不行的版本 cuihuan:~ cuixiaohuan$ curl --versioncurl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5Protocols: dict file ftp f

网上各种答案,各种不靠谱。

更新版本即可(7.45及以上都可以)。老版本对ssl3可能兼容不好。

不行的版本

cuihuan:~ cuixiaohuan$ curl --version
curl 7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz

更新后的版本

cuihuan:bin cuixiaohuan$ ./curl --version
curl 7.46.0 (x86_64-apple-darwin14.1.1) libcurl/7.46.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets

然后用brew link一下即可

cuihuan:bin cuixiaohuan$ brew link curl --force
Linking /usr/local/Cellar/curl/7.46.0... 348 symlinks created

如果无法绑定上,需要更换curl

cuihuan:bin cuixiaohuan$ pwd
/usr/bin
cuihuan:bin cuixiaohuan$ sudo rm curl
Password:
cuihuan:bin cuixiaohuan$ sudo cp /usr/local/Cellar/curl/7.46.0/bin/curl ./
cuihuan:bin cuixiaohuan$ curl --version
curl 7.46.0 (x86_64-apple-darwin14.1.1) libcurl/7.46.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读