OpenSSL 升级

共639个字

适用 Ubuntu14.04/16.04

1.卸载原有 openssl 版本 

# sudo apt-get remove openssl


2.下载最新源码 

# sudo wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz

3.解压下载的源码 

# sudo tar -zxvf openssl-1.1.0f.tar.gz

4.进入源码目录

# sudo cd openssl-1.1.0f/

5.配置 

# sudo ./config shared –prefix=/usr/local/openssl –openssldir=/usr/lib/openssl

6.编译并按照 

# sudo make && make install

7.设置环境变量 

# sudo vim ~/.bashrc
在最后一行添加export PATH=$PATH:/usr/local/openssl/bin 保存退出

8.使上面的设置生效 

# sudo source ~/.bashrc

8.创建软连接

# sudo ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib/libssl.so.1.1

# sudo ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so.1.1 

最后使用 openssl version 校验版本

# openssl version

OpenSSL 1.1.0f  25 May 2017

 

❤ 喜欢 3052

3条回应:“OpenSSL 升级”

  1. gamefly说道:

    Unquestionably consider that that you said. Your favorite reason seemed
    to be at the internet the easiest factor to be mindful of.

    I say to you, I definitely get annoyed while folks think
    about worries that they plainly do not know about. You managed to hit the nail upon the
    top and also outlined out the entire thing without having side effect ,
    people can take a signal. Will probably be back to get more.

    Thanks

  2. gamefly说道:

    When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several e-mails
    with the same comment. Is there any way you can remove me from that service?
    Thanks!

  3. I all the time used to read piece of writing in news papers but now as I am
    a user of net thus from now I am using net for content, thanks to web.

发表评论

必填项已用*标注

归档于 Ubuntu