0% found this document useful (0 votes)
4 views

Installing OpenSSL Ubuntu-16.04

Uploaded by

SST-1 Control
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Installing OpenSSL Ubuntu-16.04

Uploaded by

SST-1 Control
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.

04

(https://cloudwafer.com/)

 

OPENSSL (/BLOG/TAG/OPENSSL/) UBUNTU (/BLOG/TAG/UBUNTU/)

Installing OpenSSL on Ubuntu 16.04/18.04


CloudwaferHQ (/blog/author/cloudwaferhq/) - July 02, 2019

OpenSSL (https://www.openssl.org) is a robust, commercial-grade, and full-featured toolkit for


the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-
purpose cryptography library.

OpenSSL is used by many programs like Apache Web server


(https://cloudwafer.com/blog/managing-apache-web-server-on-ubuntu-and-centos/), PHP
(https://cloudwafer.com/blog/installing-multiple-versions-of-php-on-centos/), and many
others providing support for various cryptographic algorithms such as ciphers (AES, Blow sh,
DES, IDEA etc.), and cryptographic hash functions (MD5, MD4, SHA-1, SHA-2 etc.)

In this guide, we are going to install the latest version of OpenSSL on Ubuntu 16.04/18.04.

Deploying your cloud server


If you have not already registered with Cloudwafer (https://cloudwafer.com), you should begin
by getting signed up (https://my.cloudwafer.com/?cmd=cloudsignup). Take a moment to create
an account after which you can easily deploy your own cloud servers.

Once you have signed up, log into your Cloudwafer Client Area (https://my.cloudwafer.com/?
cmd=login) with the password provided in your mail and deploy your Cloudwafer
(https://cloudwafer.com) cloud server.

Updating System Packages


It is always recommended that you update the system to the latest packages before beginning any
major installations. This is done with the command below:

sudo apt-get update && sudo apt-get upgrade

Before we begin our installation, you can check the version of OpenSSL installed on your server
by issuing the command below:

openssl version -a

https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ 1/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04

(https://cloudwafer.com/)

Step 1: Install the necessary packages for compiling


 
Issue the command below to install the necessary packages for compilation:

sudo apt install build-essential checkinstall zlib1g-dev -y

Step 2: Download OpenSSL


Next, we are going to download OpenSSL from the source (getting the latest version which at the
time of writing this guide, the latest stable version is the 1.1.1 series).

cd /usr/local/src/
sudo wget https://www.openssl.org/ (https://www.openssl.org/)source/openssl
-1.1.1c.tar.gz

Next, extract the downloaded le using the command below:

sudo tar -xf openssl-1.1.1c.tar.gz

Next, navigate to the extracted directory.

cd openssl-1.1.1c

Step 3: Install OpenSSL


We are now going to install the latest version of OpenSSL which we downloaded using the
command below:

sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zl


ib

https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ 2/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04

(https://cloudwafer.com/)

 

sudo make
sudo make test
sudo make install

Step 4: Con gure OpenSSL Shared Libraries


Naviagate to the /etc/ld.so.conf.d directory and create a new con guration le 'openssl-
1.1.1c.conf'.

cd /etc/ld.so.conf.d/
sudo nano openssl-1.1.1c.conf

Enter the following:

/usr/local/ssl/lib

Ensure to save before you exit.

Next, reload the dynamic link by issuing the command below:

sudo ldconfig -v

Step 5: Con gure OpenSSL Binary


In our nal con guration, we are going to insert the binary of our new version of OpenSSL
installed (located at /usr/local/ssl/bin/openssl ) to replace the default openssl binary (located
at /usr/bin/openssl or /bin/openssl ).

First, carry out a backup of the binary les.

sudo mv /usr/bin/c_rehash /usr/bin/c_rehash.backup


sudo mv /usr/bin/openssl /usr/bin/openssl.backup

Next, edit the /etc/environment le using vim.

sudo nano /etc/environment

https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ 3/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04

Insert the following:


(https://cloudwafer.com/)
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gam
es:/usr/local/games:/usr/local/ssl/bin"
 

Ensure to save before you exit.

Next, reload the OpenSSL environment and check the PATH bin directory using commands
below:

source /etc/environment
echo $PATH

We can now check and verify our installation of the latest stable version of OpenSSL using the
command below:

which openssl
openssl version -a

Share this article

 Facebook  Twitter  Google+


(https://www.facebook.com/sharer/sharer.php?
(https://twitter.com/share?
(https://plus.google.com/share?
u=https://cloudwafer.com/blog/installing-
text=Installing%20OpenSSL%20on%20Ubuntu%2016.04%2F18.04&url=https://cloud
url=https://cloudwafer.com/blog/installing-
openssl-on- openssl-on- openssl-on-
ubuntu-16- ubuntu-16- ubuntu-16-
04-18-04/) 04-18-04/) 04-18-04/)

(/blog/author/cloudwaferhq/)
CloudwaferHQ (/blog/author/cloudwaferhq/)
 (https://cloudwafer.com/blog/)  (https://twitter.com/cloudwaferhq)
 (https://www.facebook.com/cloudwafer)

PREVIOUS POST (HTTPS://CLOUDWAFER.COM/BLOG/INSTALLING-MONIT-ON-UBUNTU/)


(https://cloudwafer.com/blog/installing-monit-on-ubuntu/)

https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ 4/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04

(https://cloudwafer.com/)
MONIT (/BLOG/TAG/MONIT/)

Installing Monit on Ubuntu 16.04/18.04


(https://cloudwafer.com/blog/installing-monit-on-ubuntu/)  

NEXT POST (HTTPS://CLOUDWAFER.COM/BLOG/INSTALLING-OPENSSL-ON-CENTOS-7/)

(https://cloudwafer.com/blog/installing-openssl-on-centos-7/)

CENTOS 7 (/BLOG/TAG/CENTOS-7/) OPENSSL (/BLOG/TAG/OPENSSL/)

Installing OpenSSL on CentOS 7


(https://cloudwafer.com/blog/installing-openssl-on-
centos-7/)

5 Comments Cloudwafer Hosting 🔒 Disqus' Privacy Policy 


1 Login

 Recommend 3 t Tweet f Share Sort by Best

Join the discussion…

LOG IN WITH
OR SIGN UP WITH DISQUS ?

Name

Robert • 3 months ago • edited


/usr/local/ssl/bin/openssl
root@localhost:/# openssl version -a
openssl: relocation error: openssl: symbol EVP_mdc2 version OPENSSL_1_1_0 not defined in file
libcrypto.so.1.1 with link time reference
2△ ▽ • Reply • Share ›

Claudius Nascimento > Robert • 2 months ago


Same here
1△ ▽ • Reply • Share ›

GraveDigger > Claudius Nascimento • 2 months ago


same here, any help is appreciated
1△ ▽ • Reply • Share ›

Benjamin Schiller • 5 months ago


Well done! Thank you guys
△ ▽ • Reply • Share ›

PP • 6 months ago
Hi there - Can you please advise what following commands are doing here?

sudo make
sudo make test
sudo make install
△ ▽ • Reply • Share ›

✉ Subscribe d Add Disqus to your siteAdd DisqusAdd ⚠ Do Not Sell My Data


https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ 5/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04

COMPANY
(https://cloudwafer.com/)
Home (https://cloudwafer.com/)
About Us (https://cloudwafer.com/about)
Referral Program (https://my.cloudwafer.com/a liates/)  
Network Status (https://status.cloudwafer.com/)

HOSTING PRODUCTS

SMART CLOUD (HTTPS://MY.CLOUDWAFER.COM/CART/CLOUD/) DEDICATED (HTTPS://MY.CLOUDWAFER.COM/CART/DEDICATED/)

WEB HOSTING (HTTPS://MY.CLOUDWAFER.COM/CART/WEB-HOSTING) DOMAIN NAMES (HTTPS://MY.CLOUDWAFER.COM/CART/DOMAINS/)

LICENSES (HTTPS://MY.CLOUDWAFER.COM/CART/LICENSES/) SSL CERTIFICATES (HTTPS://MY.CLOUDWAFER.COM/CART/SSL/)

CLOUD DNS (HTTPS://MY.CLOUDWAFER.COM/CART/CLOUD-DNS/)

SUPPORT

Knowledgebase (https://my.cloudwafer.com/knowledgebase/)
Contact Sales (https://my.cloudwafer.com/tickets/new/)
Submit a Ticket (https://my.cloudwafer.com/tickets/new/)

SUBSCRIBE

Get latest articles

Enter your email... SUBSCRIBE

 (https://facebook.com/cloudwafer)  (https://twitter.com/cloudwaferhq)    (https://cloudwafer.com/blog/rss/)

Cloudwafer Blog (https://cloudwafer.com/blog) © 2020. High Performance Cloud Hosting by https://cloudwafer.com (https://cloudwafer.com)

https://cloudwafer.com/blog/installing-openssl-on-ubuntu-16-04-18-04/ 6/6

You might also like