openssl学习 - 手动升级安装(一)

环境:

系统:centos 6.5

openssl:OpenSSL_1_0_1h




介绍:

在OpenSSL 1.0.1g版本中“ Heartbleed”漏洞被修复。 所有centos6.5的系统运行OpenSSL 1.0.1e (openssl-1.0.1e-16.el6_5.4) 都会受到威胁 , 
所以笔者正好升级一下openssl. 


本来想用自动升级的,结果并不支持,, 只好手动安装 升级 , 一开始是想要升级到 openssl 1.0.1t 版本的 , 但是一直编译不过 , 出现下面这个错误

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. CMS consistency test  
  2. /usr/bin/perl cms-test.pl  
  3. CMS => PKCS#7 compatibility tests  
  4. signed content DER format, RSA key: verify error  
  5. make[1]: *** [test_cms] Error 1  
  6. make[1]: Leaving directory `/home/yuezh2/openssl-OpenSSL_1_0_1t/test'  
  7. make: *** [tests] Error 2  

看了很多资料, 都在给 openssl 提bug, 但是并没有找到有效的解决方式 , 所以只好放弃了这个版本 , 换成升级 openssl 1.0.1h 了




下载解压openssl

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. cd /home/appadmin  
  2.   
  3. wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_2h.tar.gz  
  4.   
  5. tar -zvxf OpenSSL_1_0_2h.tar.gz  
  6.   
  7. cd openssl-OpenSSL_1_0_2h  


编译安装:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. ./config  
  2.   
  3. #也可以自定义安装目录 , 其他的一些配置参考压缩包中的INSTALL文件  
  4. #./config --prefix=/usr/local --openssldir=/usr/local/openssl  
  5.   
  6. make  
  7. make test  
  8. make install  


查看版本:

安装完成以后,查看版本,发现版本还是

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. OpenSSL 1.0.1e-fips 11 Feb 2013  

修改系统连接:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. mv /usr/bin/openssl /root/  
  2. ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl  

再次查看版本:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. # openssl version  
  2. OpenSSL 1.0.2h  3 May 2016  


升级成功
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值