由于微信需要TLSv1.2,除了上一章提到可以不加检验之前,还可以升级OpenSSL来实现TLSv1.2的升级 1、查看当前源版本 ~~~ openssl version -a ~~~ OpenSSL 1.0.1e 2、下载openssl-1.0.2h.tar.gz ~~~ wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz ~~~ 3、更新zlib ~~~ yum install -y zlib ~~~ 4、解压安装 ~~~ tar zxf openssl-1.0.2h.tar.gz cd openssl-1.0.2h ./config shared zlib make make install mv /usr/bin/openssl /usr/bin/openssl.bak mv /usr/include/openssl /usr/include/openssl.bak ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl ln -s /usr/local/ssl/include/openssl /usr/include/openssl echo “/usr/local/ssl/lib” >> /etc/ld.so.conf ldconfig -v ~~~ 5、查看是否升级成功 ~~~ openssl version -a ~~~ OpenSSL 1.0.2h 3 May 2016