centos6.9 Upgrading OpenSSL version

Source: Internet
Author: User
Tags openssl enc openssl version

The client has recently encountered a remote connection not on a Linux cloud server. A problem with the OpenSSL version was found after entering the system, resulting in an sshd service exception.

Here to stay white follow-up supplement.

So go home and simply test the experiment to upgrade the OpenSSL version on the centos6.9. Specific as follows:
View the current OpenSSL version of the system

The upgrade steps are: Download the source package--compile and install---back up the old OpenSSL file---set up a new soft link---test.
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
TAR-ZXVF openssl-1.0.1g.tar.gz
CD openssl-1.0.1g
./config shared Zlib
Make && make install
#修改历史的OpenSSL文件设置备份
Mv/usr/bin/openssl/usr/bin/openssl.old
#设置软连接使其使用新的OpenSSL版本 just installed OpenSSL is installed by default on/usr/local/ssl
Ln-s/usr/local/ssl/bin/openssl/usr/bin/openssl
#更新动态链接库数据
echo "/usr/local/ssl/lib" >>/etc/ld.so.conf
Ldconfig-v
Let's take a look at OpenSSL version information

Ii. using OpenSSL for file encryption
Encrypting files/etc/inittab File
Encryption: OpenSSL enc-des3-salt-a-in inittab-out Inittab.des3
Decryption: OpenSSL enc-des3-d-salt-a-in inittab.des3-out inittab

centos6.9 Upgrading OpenSSL version

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.