Install/upgrade OpenSSL under Linux

Source: Internet
Author: User
Tags openssl version

(2810) (1)

Installation Environment:

Operating System : CentOs7

OpenSSL version:openssl-1.0.2j.tar.gz


Installation:

The current version of the latest SSL address is

http://www.openssl.org/source/openssl-1. 1 . 0e . tar.gz

Note: Enter http://www.openssl.org/source/ to view the latest version

1. Place the downloaded compressed package in the root directory,

2, under the folder decompression, command: Tar-xzf openssl-1.0.2j.tar.gz, get openssl-1.0.2j folder

3. Enter the extracted directory: CD openssl-1.0.2j

4, set the OpenSSL installation, ( --prefix ) parameters for the installation of the directory, that is, the installed files will appear in this directory:
Execute command: ./config--prefix=/usr/local/openssl

5. Execute the order./config-t

6. Execute make to compile OpenSSL

Here if the following error occurs

MAKE[1]: Gcc:command not found

I found my installation on the Internet. gcc compiler not in CentOS7

ensure the System network unblocked, execute the command yum-y install GCC (note, must forget the smooth, otherwise not installed)

7. Installing OPENSSL:
Make install

8. Execute the following command

[Email protected]/]# cd/usr/local

[Email protected] local]# Ldd/usr/local/openssl/bin/openssl

A message similar to the following will appear:

9. View the path

...] # which OpenSSL

View version

...] # OpenSSL version

Upgrade:

Upgrade the OpenSSL environment to OPENSSL-1.0.1G

1. View Source Version

[email protected] ~]# OpenSSL version-a

OpenSSL 0.9.8e-fips-rhel5 Jul 2008

2, download Openssl-1.0.1g.tar.gzwget http://www.openssl.org/source/openssl-1.0.1g.tar.gz3, update Zlibyum install-y zlib4, Unzip install tar zxf openssl-1.0.1g.tar.gzcd openssl-1.0.1g./config shared Zlibmakemake installmv/usr/bin/openssl/usr/bin/ Openssl.bakmv/usr/include/openssl/usr/include/openssl.bakln-s/usr/local/ssl/bin/openssl/usr/bin/opensslln-s/ Usr/local/ssl/include/openssl/usr/include/opensslecho "/usr/local/ssl/lib" >>/etc/ld.so.confldconfig-v5, See if the upgrade was successful

[email protected] ~]# OpenSSL version-a

OpenSSL 1.0.1g 7 APR 2014

Install/upgrade OpenSSL under Linux

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.