12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.
04
([Link]
OPENSSL (/BLOG/TAG/OPENSSL/) UBUNTU (/BLOG/TAG/UBUNTU/)
Installing OpenSSL on Ubuntu 16.04/18.04
CloudwaferHQ (/blog/author/cloudwaferhq/) - July 02, 2019
OpenSSL ([Link] 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
([Link] PHP
([Link] 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 ([Link] you should begin
by getting signed up ([Link] 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 ([Link]
cmd=login) with the password provided in your mail and deploy your Cloudwafer
([Link] 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
[Link] 1/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04
([Link]
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 [Link] ([Link]
-[Link]
Next, extract the downloaded le using the command below:
sudo tar -xf [Link]
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
[Link] 2/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04
([Link]
sudo make
sudo make test
sudo make install
Step 4: Con gure OpenSSL Shared Libraries
Naviagate to the /etc/[Link].d directory and create a new con guration le 'openssl-
[Link]'.
cd /etc/[Link].d/
sudo nano [Link]
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/[Link]
Next, edit the /etc/environment le using vim.
sudo nano /etc/environment
[Link] 3/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04
Insert the following:
([Link]
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+
([Link]
([Link]
([Link]
u=[Link]
text=Installing%20OpenSSL%20on%20Ubuntu%2016.04%2F18.04&url=[Link]
url=[Link]
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/)
([Link] ([Link]
([Link]
PREVIOUS POST (HTTPS://[Link]/BLOG/INSTALLING-MONIT-ON-UBUNTU/)
([Link]
[Link] 4/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04
([Link]
MONIT (/BLOG/TAG/MONIT/)
Installing Monit on Ubuntu 16.04/18.04
([Link]
NEXT POST (HTTPS://[Link]/BLOG/INSTALLING-OPENSSL-ON-CENTOS-7/)
([Link]
CENTOS 7 (/BLOG/TAG/CENTOS-7/) OPENSSL (/BLOG/TAG/OPENSSL/)
Installing OpenSSL on CentOS 7
([Link]
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
[Link].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
[Link] 5/6
12/05/2020 Installing OpenSSL on Ubuntu 16.04/18.04
COMPANY
([Link]
Home ([Link]
About Us ([Link]
Referral Program ([Link] liates/)
Network Status ([Link]
HOSTING PRODUCTS
SMART CLOUD (HTTPS://[Link]/CART/CLOUD/) DEDICATED (HTTPS://[Link]/CART/DEDICATED/)
WEB HOSTING (HTTPS://[Link]/CART/WEB-HOSTING) DOMAIN NAMES (HTTPS://[Link]/CART/DOMAINS/)
LICENSES (HTTPS://[Link]/CART/LICENSES/) SSL CERTIFICATES (HTTPS://[Link]/CART/SSL/)
CLOUD DNS (HTTPS://[Link]/CART/CLOUD-DNS/)
SUPPORT
Knowledgebase ([Link]
Contact Sales ([Link]
Submit a Ticket ([Link]
SUBSCRIBE
Get latest articles
Enter your email... SUBSCRIBE
([Link] ([Link] ([Link]
Cloudwafer Blog ([Link] © 2020. High Performance Cloud Hosting by [Link] ([Link]
[Link] 6/6