How to Install OpenSSL from source code on Ubuntu 16.04 (2024)

How to Install OpenSSL from source code on Ubuntu 16.04 (1)

Jose Tandavala

Posted on

How to Install OpenSSL from source code on Ubuntu 16.04 (2) How to Install OpenSSL from source code on Ubuntu 16.04 (3) How to Install OpenSSL from source code on Ubuntu 16.04 (4) How to Install OpenSSL from source code on Ubuntu 16.04 (5) How to Install OpenSSL from source code on Ubuntu 16.04 (6)

SSL is the foundation of a secure internet and it protects our sensitive information as it travels across the world's computer network, in this article I will show you how to install OpenSSL from source code.

First, we need to download OpenSSL from the source, by doing this we can always have the last version running on our machine. To download it type the following command.

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

Before we proceed, make sure that you have the necessary dependencies for building packages from the source code, go back to the terminal, and type the following.

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

The above command installs three packages build essential which is a reference for all packages needed to compile a Debian package, checkinstall is self-explanatory it is used to check if a given package is installed and zlib1g-dev library allows applications to conveniently read and write gzip compatible files.

Now that we have downloaded the source code and installed all the necessary dependencies packages, we need to extract the downloaded file using the command below, make sure that you are in the same directory where you have downloaded the file.

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

After extracting the file, navigate to the extracted directory

cd openssl-1.1.1c

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

sudo ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlibsudo makesudo make testsudo make install

If no error, so far so good, now let us configure OpenSSL Shared Libraries, using nano text editor you can anyone of your choice.

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

This command will open nano text editor with an empty file, type the below text and save.

/usr/local/ssl/lib

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

sudo ldconfig -v

Last but not least, we need to configure OpenSSL binary, inserting 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). But first, we need to backup the binary files.

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

Next we need to edit /etc/environment file using nano

sudo nano /etc/environment

With nano opened, let us update the /etc/environment file as the following after that we'll save the file.

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/ssl/bin"

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

source /etc/environmentecho $PATH

We can now check and verify our installation of OpenSSL using the command below

which opensslopenssl version -a

Happy coding day!

Top comments (2)

Subscribe

How to Install OpenSSL from source code on Ubuntu 16.04 (8)

Works fine on Linux Mint 20.3 Una (Ubuntu 20.04 focal) along with OpenSSH, Tor proxy and OpenVPN. However, after installation, wget doesn't work with encryption anymore.

It says:

Connecting to www.kla.tv (www.kla.tv)|138.201.64.151|:443... |S-chain|-<>-127.0.0.1:9050-<><>-138.201.64.151:443-<><>-OKconnected.ERROR: cannot verify www.kla.tv's certificate, issued by ‘CN=R3,O=Let's Encrypt,C=US’:Self-signed certificate encountered.To connect to www.kla.tv insecurely, use `--no-check-certificate'.

I've tried several workarounds, but I can't fix it myself. What's the clue here?

How to Install OpenSSL from source code on Ubuntu 16.04 (10)

Thanks man, I successfully installed openssl 1.1.1j on ubuntu 16.04!

For further actions, you may consider blocking this person and/or reporting abuse

How to Install OpenSSL from source code on Ubuntu 16.04 (2024)
Top Articles
42 Important Credit Card Terms You Need to Know
Adding A Synchrony Bank Credit Card Authorized User
Poe T4 Aisling
Www.1Tamilmv.cafe
Palm Coast Permits Online
Sound Of Freedom Showtimes Near Governor's Crossing Stadium 14
Faint Citrine Lost Ark
Www.metaquest/Device Code
oklahoma city for sale "new tulsa" - craigslist
Tx Rrc Drilling Permit Query
Mohawkind Docagent
Roblox Developers’ Journal
Bhad Bhabie Shares Footage Of Her Child's Father Beating Her Up, Wants Him To 'Get Help'
Craigslist Phoenix Cars By Owner Only
Smokeland West Warwick
Florida (FL) Powerball - Winning Numbers & Results
Sports Clips Plant City
Troy Athens Cheer Weebly
Gino Jennings Live Stream Today
Echat Fr Review Pc Retailer In Qatar Prestige Pc Providers – Alpha Marine Group
2 Corinthians 6 Nlt
Razor Edge Gotti Pitbull Price
Zoe Mintz Adam Duritz
Satisfactory: How to Make Efficient Factories (Tips, Tricks, & Strategies)
Where Is George The Pet Collector
Busted Mcpherson Newspaper
Jail View Sumter
Cookie Clicker Advanced Method Unblocked
Sienna
Renfield Showtimes Near Paragon Theaters - Coral Square
27 Modern Dining Room Ideas You'll Want to Try ASAP
Cor Triatriatum: Background, Pathophysiology, Epidemiology
Evil Dead Rise Showtimes Near Sierra Vista Cinemas 16
Buhl Park Summer Concert Series 2023 Schedule
Fuse Box Diagram Honda Accord (2013-2017)
Bend Missed Connections
Generator Supercenter Heartland
Meowiarty Puzzle
49S Results Coral
Used Safari Condo Alto R1723 For Sale
Sun-Tattler from Hollywood, Florida
Scioto Post News
Gpa Calculator Georgia Tech
Felix Mallard Lpsg
Weather In Allentown-Bethlehem-Easton Metropolitan Area 10 Days
Poe Self Chill
The Complete Uber Eats Delivery Driver Guide:
New Starfield Deep-Dive Reveals How Shattered Space DLC Will Finally Fix The Game's Biggest Combat Flaw
Arnold Swansinger Family
King Fields Mortuary
Cataz.net Android Movies Apk
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 6210

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.