记一次在请求第三方域名xxx.com时,请求未成功发出去,通过检查网络(Telnet + ping),发现是正常的,在其他服务器和浏览器,是正常访问xxx.com的.
通过在服务器上进行curl 和 wget 时,发现返回这个:
正在解析主机 xxx.com.cn... xx.xx.xx.xx
Connecting toxxxcom.cn|xx.xx.xx.xx|:443... 已连接。
OpenSSL: error:1408D13A:SSL routines:SSL3_GET_KEY_EXCHANGE:unable to find ecdh parameters
无法建立 SSL 连接。
通过查询,发现带参数 --ciphers AES256-SHA 可以正常解决 curl 报错。
SLES 11 uses an old OpenSSL 0.9.8 and cannot handle TLS1.2 ciphers like ECDH (
openssl ciphers -v
). You can use --ciphers AES256-SHA to fix it.curl --ciphers AES256-SHA xxx.com.cn