博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos 升级openssl
阅读量:4647 次
发布时间:2019-06-09

本文共 1296 字,大约阅读时间需要 4 分钟。

 
1、查看源版本
[root@zj ~]# openssl version -a
[root@DS1-VM-Node250 ~]# mkdir /tmp/openssl
[root@DS1-VM-Node250 ~]#
curl -Lk https://www.openssl.org/source/openssl-1.0.2h.tar.gz|gunzip |tar x -C /tmp/openssl --strip-components=1
[root@DS1-VM-Node250 ~]# cd /tmp/openssl/
[root@DS1-VM-Node250 /tmp/openssl]#
./config --prefix=/usr shared zlib
[root@DS1-VM-Node250 /tmp/openssl]#
make -j $(awk '/processor/{i++}END{print i}' /proc/cpuinfo) && make install && cd
[root@DS1-VM-Node250 ~]# rm -rf /tmp/openssl/
[root@DS1-VM-Node250 ~]# openssl version
OpenSSL 1.0.2h  3 May 2016
还要重新编译NG 的版本,最好用最新稳定版本的。
还有如果是PHP CURL 的问题 一般老的系统比如centos 5 redhat5 不支持SNI 技术的
curl: (51) SSL: no alternative certificate subject name matches target host name 'ai.120.net'
SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'
程序也可以解决,但是不是长久的问题
//设置对ssl不进行证书校验curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
需要在升级完openssl 的时候
在升级CURL
./configure --prefix=/usr/local/libcurl --enable-http --enable-ftp --enable-file --enable-ldap --enable-ldaps --enable-dict --enable-proxy --with-ssl
重新编译PHP
--with-curl=/usr/local/libcurl

 

转载于:https://www.cnblogs.com/centos-python/articles/8521429.html

你可能感兴趣的文章
第一次软件工程作业(改进版)
查看>>
网络流24题-飞行员配对方案问题
查看>>
Jenkins 2.16.3默认没有Launch agent via Java Web Start,如何配置使用
查看>>
引入css的四种方式
查看>>
iOS开发UI篇—transframe属性(形变)
查看>>
3月7日 ArrayList集合
查看>>
jsp 环境配置记录
查看>>
Python03
查看>>
LOJ 2537 「PKUWC2018」Minimax
查看>>
使用java中replaceAll方法替换字符串中的反斜杠
查看>>
Some configure
查看>>
流量调整和限流技术 【转载】
查看>>
正由另一进程使用,因此该进程无法访问此文件。
查看>>
1 线性空间
查看>>
VS不显示最近打开的项目
查看>>
MyEclipse安装Freemarker插件
查看>>
计算多项式的值
查看>>
DP(动态规划)
查看>>
chkconfig
查看>>
最强的篮球队和马尔可夫模型
查看>>