This tutorial goes through how to install OpenSSL 1.1.1 on CentOS 7, since the yum repo only installs up to OpenSSL 1.0.
Requirements:-
1) Upgrade the system
2) Download OpenSSL required package.
3) Install and Run OenSSL
4) Check Version
Step 1) Install required packages
$ sudo yum -y update
$ yum install -y make gcc perl-core pcre-devel wget zlib-devel
Download the latest version of OpenSSL source code
$ wget https://ftp.openssl.org/source/openssl-1.1.1k.tar.gz
Configure, build and install OpenSSL, Uncompress the source file
$ tar -xzvf openssl-1.1.1k.tar.gz
Step 2) Change to the OpenSSL directory
$ cd openssl-1.1.1k
Configure the package for compilation
$ ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
Compile package
$ make
Test compiled package
$ make test
Install compiled package
$ make install
Step 3) Export library path, Create environment variable file
$ vim /etc/profile.d/openssl.sh
Add the following content
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
Load the environment variable
$ source /etc/profile.d/openssl.sh
Step 4) Verify the OpenSSL version
$ openssl version
No comments:
Post a Comment
testing