(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