如何从源代码升级 CentOS 6.5/Linux/Unix 中的 OpenSSL? [英] How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source?

查看:18
本文介绍了如何从源代码升级 CentOS 6.5/Linux/Unix 中的 OpenSSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 CentOS 6.5 中升级 OpenSSL?

How do I upgrade OpenSSL in CentOS 6.5?

我使用了这些命令,但什么也没发生:

I have used these commands, but nothings happens:

 cd /usr/src
 wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
 tar -zxf openssl-1.0.1g.tar.gz
 cd openssl-1.0.1g
 ./config
 make
 make test
 make install
 cd /usr/src
 rm -rf openssl-1.0.1g.tar.gz
 rm -rf openssl-1.0.1g

使用这个命令后,我得到了旧版本

After using this command, I get the old version

openssl version

推荐答案

./config --prefix=/usr --openssldir=/usr/local/openssl shared

试试这个配置行来覆盖默认值.当您不使用前缀时,它会在您的设置中默认安装到前缀/usr/local/ssl .你可能有/usr/local/ssl/bin/openssl"而不是覆盖/usr/bin/openssl.您也可以使用/usr/local 作为前缀,但如果您的路径中尚未包含该路径,则需要相应地调整您的路径.这是安装文档:

Try this config line instead to overwrite the default. It installs to prefix /usr/local/ssl by default in your setup when you leave off the prefix. You probably have "/usr/local/ssl/bin/openssl" instead of overwriting /usr/bin/openssl. You can also use /usr/local for prefix instead, but you would need to adjust your path accordingly if that is not already on your path. Here is the INSTALL documentation:

  $ ./config
  $ make
  $ make test
  $ make install

 [If any of these steps fails, see section Installation in Detail below.]

This will build and install OpenSSL in the default location, which is (for
historical reasons) /usr/local/ssl. If you want to install it anywhere else,
run config like this:

  $ ./config --prefix=/usr/local --openssldir=/usr/local/openssl

https://github.com/openssl/openssl/blob/master/INSTALLhttp://heartbleed.com/

这篇关于如何从源代码升级 CentOS 6.5/Linux/Unix 中的 OpenSSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆