Skip to content

Instantly share code, notes, and snippets.

@bmorrical-ICC
Last active March 30, 2020 15:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmorrical-ICC/30e5206103d9358f4e7dcaaf75ed5625 to your computer and use it in GitHub Desktop.
Save bmorrical-ICC/30e5206103d9358f4e7dcaaf75ed5625 to your computer and use it in GitHub Desktop.
Upgrade OpenSSL From Source on CentOS/RHEL to Latest Version v1.1.1x

Install OpenSSL Latest Version On RHEL/CentOS

This walkthough will help you to install OpenSSL on RHEL or CentOS based environments.

Remove old packages

$ sudo yum remove openssl-devel

Install dependencies

$ sudo yum install libtool perl-core zlib-devel -y

Pull from Github, choose the version without FIPS. Installation is more secure to have OpenSSL without FIPS, as fixes are usually included much faster in regular version than in FIPS version.

| https://github.com/openssl/openssl/releases

$ curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1e.tar.gz

Extract and change directory

$ tar -zxvf OpenSSL_1_1_1e.tar.gz
$ cd openssl-OpenSSL_1_1_1e

Prepare the installation

$ ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib
$ make

Run tests

If any fail you need to fix them before installing the library

$ make test

Do the install

$ sudo make install

Make openssl available in terminal

$ sudo nano /etc/ld.so.conf

Add the path, save and exit

$ /usr/local/openssl/lib

Reload

$ ldconfig
$ reload terminal

Did it work? You should get output OpenSSL 1.1.1e 17 Mar 2020

$ openssl version

You can now remove installation package and folder

$ rm OpenSSL_1_1_1e.tar.gz
$ rm -rf openssl-OpenSSL_1_1_1e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment