1
Slienc7 2015-10-03 13:22:45 +08:00
应该是系统问题,直接不检查证书即可
|
2
ryd994 2015-10-03 14:21:21 +08:00
什么版本的 curl ?
用其他,比如 wget 能复现么? HTTPS CDN 一般需要客户端支持 SNI |
3
hjxx OP @ryd994
[root@c ~]# curl -V curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz [root@c ~]# wget https://v2ex.com --2015-10-03 03:13:13-- https://v2ex.com/ Resolving v2ex.com... 23.251.125.131, 23.251.126.133 Connecting to v2ex.com|23.251.125.131|:443... connected. ERROR: certificate common name `*.c3edge.com' doesn't match requested host name `v2ex.com'. To connect to v2ex.com insecurely, use `--no-check-certificate'. Unable to establish SSL connection. |
4
xfspace 2015-10-03 18:12:23 +08:00
你的系统问题。
美帝 Debian 7 root@GF-f:~# wget https://v2ex.com --2015-10-03 18:10:28-- https://v2ex.com/ Resolving v2ex.com (v2ex.com)... 23.251.125.131, 23.251.126.133 Connecting to v2ex.com (v2ex.com)|23.251.125.131|:443... connected. HTTP request sent, awaiting response... 502 Bad Gateway 2015-10-03 18:10:31 ERROR 502: Bad Gateway. --- 阿里云 Debian 7 root@GF-Aliyun:~# wget https://v2ex.com --2015-10-03 18:11:40-- https://v2ex.com/ Resolving v2ex.com (v2ex.com)... 117.34.96.85, 59.173.16.210, 183.60.90.83, ... Connecting to v2ex.com (v2ex.com)|117.34.96.85|:443... connected. HTTP request sent, awaiting response... 502 Bad Gateway 2015-10-03 18:11:40 ERROR 502: Bad Gateway. |
5
sparanoid MOD 可能是你的 curl 版本过老,还不支持 SNI
|
6
kn007 2015-10-03 20:07:18 +08:00
表示无此问题
Centos 6.7 root@kn007:~ > curl --version curl 7.43.0 (x86_64-unknown-linux-gnu) libcurl/7.43.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.18 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: IDN Largefile NTLM NTLM_WB SSL libz UnixSockets |
7
adrianzhang 2015-10-03 21:52:03 +08:00
|