如何在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 version
./config --prefix=/usr --openssldir=/usr/local/openssl shared
请尝试此配置行,以覆盖默认。当您离开前缀时,它在安装程序中默认安装在/usr/local/ssl前缀。您可能有“/usr/local/ssl / bin / openssl”,而不是覆盖/ usr / bin / openssl。您也可以使用/ usr / local作为前缀,但如果路径中尚未包含路径,则需要相应地调整路径。这里是INSTALL文档:
$ ./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/