curl: (35) Server aborted the SSL handshake

前端之家收集整理的这篇文章主要介绍了curl: (35) Server aborted the SSL handshake前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

更新版本即可(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
原文链接:https://www.f2er.com/note/422476.html

猜你在找的程序笔记相关文章