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

相关文章

学习编程是顺着互联网的发展潮流,是一件好事。新手如何学习...
IT行业是什么工作做什么?IT行业的工作有:产品策划类、页面...
女生学Java好就业吗?女生适合学Java编程吗?目前有不少女生...
Can’t connect to local MySQL server through socket \'/v...
oracle基本命令 一、登录操作 1.管理员登录 # 管理员登录 ...
一、背景 因为项目中需要通北京网络,所以需要连vpn,但是服...