如何在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/