我当前环境 centos 6.5 + apache 2.2
ssl涉及到的软件包
libcurl 7.19.7
openssl 1.0.1e (1.0.1后才支持tsl 1.2)
mod_ssl
httpd版本
用的阿里云免费证书。当时测试是通过 https://www.ssllabs.com/ssltest/index.html 提示网站是支持tsl 1.2的.
但是我通过 https://www.howsmyssl.com/s/api.html 这个内测服务器 是只支持tsl1.0
后经过测试代码,报告 curl_error: ssl connect error .才确定服务器的确不支持tsl1.2
后经过反复排查 及 google搜索,发现nss 软件包。
进过升级到 3.28.4 。并重启httpd。发现连接正常了。
所以,测试服务器是否支持tsl1.2可以通过这个工具 https://www.howsmyssl.com/s/api.html
--用yum升级指定软件的时候,可以先删除,再安装
yum remove soft
yum install soft