如何从CentOS 6.5 / Linux / Unix升级OpenSSL? [英] How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source?
问题描述
如何在CentOS 6.5升级OpenSSL?
我使用了这些命令,但不会发生:
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
使用此命令后,我获得旧版本
openssl版本
解决方案
./ config --prefix = usr --openssldir = / usr / local / openssl共享
尝试此配置行代替覆盖默认。当您离开前缀时,它在安装程序中默认安装在/ usr / local / ssl前缀。您可能有/ usr / local / ssl / bin / openssl而不是覆盖/ usr / bin / openssl。您也可以使用/ usr / local作为前缀,但如果路径中尚未包含路径,则需要相应地调整路径。这是INSTALL文档:
$ ./config
$ make
$ make test
$ make install
[如果任何这些步骤失败,请参见下面的安装细节。]
这将在默认位置创建和安装OpenSSL,它是对于
历史原因)/ usr / local / ssl。如果你想在别的地方安装它,
运行配置像这样:
$ ./config --prefix = / usr / local --openssldir = / usr / local / openssl
https://github.com/openssl/openssl/blob/master/INSTALL
http://heartbleed.com/
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
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/INSTALL
http://heartbleed.com/
这篇关于如何从CentOS 6.5 / Linux / Unix升级OpenSSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!