Centos7升级openssl

升级openssl

1.下载最新版openssl

https://www.openssl.org/source/openssl-1.1.1-pre8.tar.gz

2.编译安装

cd openssl-1.1.1-pre8
./config --prefix=/usr/local/openssl no-zlib #不需要zlib
make
make install

3.备份原配置

[root@s2-hadoop-test ~]# mv /usr/bin/openssl /usr/bin/openssl.bak

[root@s2-hadoop-test ~]

# mv /usr/include/openssl/ /usr/include/openssl.bak

4.新版配置

#将安装好的openssl 的openssl命令软连到/usr/bin/openssl

[root@s2-hadoop-test ~]

# ln -s /usr/local/openssl/include/openssl /usr/include/openssl#软链到升级后的libssl.so

[root@s2-hadoop-test ~]

# ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so#将安装好的openssl命令软连到/usr/bin/openssl ln –s /usr/local/openssl/bin/openssl /usr/bin/openssl

5.修改系统配置

#写入openssl库文件的搜索路径
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
#使修改后的/etc/ld.so.conf生效 
ldconfig -v

6.查看openssl版本

openssl version
OpenSSL 1.1.1-pre8 (beta) 20 Jun 2018

重新安装python

注意:需要指定openssl的安装路径,--with-openssl

./configure --prefix=/usr/local/python37 --with-openssl=/usr/local/openssl
make
make install
分享到:

39 条评论

昵称
  1. Wow, this piece of writing is fastidious, my sister is analyzing these things, so I am
    going to tell her.

  2. Hello to all, how is the whole thing, I think
    every one is getting more from this site, and your views are nice
    for new users.

  3. Fantastic blog you have here but I was curious about if you knew of any user discussion forums
    that cover the same topics talked about here? I’d really like to be a part of online community
    where I can get advice from other experienced individuals
    that share the same interest. If you have any recommendations, please let me
    know. Cheers!

  4. I was suggested this web site via my cousin. I am not
    sure whether this publish is written by means of
    him as nobody else recognize such exact approximately my trouble.
    You are incredible! Thanks!

  5. Hi, this weekend is nice designed for me, since this moment i am reading
    this fantastic educational paragraph here at my house.

  6. Hey there would you mind stating which blog platform you’re using?

    I’m planning to start my own blog soon but I’m having a difficult time
    making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and I’m looking for something unique.
    P.S Sorry for being off-topic but I had to ask!

  7. An interesting discussion is worth comment. I do think that you
    ought to write more about this issue, it may not be a taboo subject but usually people do not discuss
    these topics. To the next! Best wishes!!

  8. It’s a pity you don’t have a donate button! I’d most certainly donate to this brilliant blog!

    I guess for now i’ll settle for book-marking and adding your
    RSS feed to my Google account. I look forward to fresh updates
    and will share this blog with my Facebook group. Chat soon!

  9. Have you ever considered creating an ebook or guest authoring
    on other websites? I have a blog based upon on the same topics you discuss and
    would love to have you share some stories/information.
    I know my subscribers would value your work. If you are
    even remotely interested, feel free to shoot me an e mail.