How to upgrade OpenSSL 1.1.0 to 1.1.1 in Ubuntu 18.04?
Solution 1:
NOTE: As of ~August 2019, openSSL 1.1.1 should be available for installation via normal package upgrades/installations for 18.04. Or, you can download the .deb package directly from here.
According to the OpenSSL website:
The latest stable version is the 1.1.1 series. This is also our Long Term Support (LTS) version, supported until 11th September 2023.
Since this is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.
Below are the instructions to follow:
- Open a terminal (Ctrl+Alt+t).
- Fetch the tarball:
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
- Unpack the tarball with
tar -zxf openssl-1.1.1g.tar.gz && cd openssl-1.1.1g
- Issue the command
./config
. - Issue the command
make
(You may need to runsudo apt install make gcc
before running this command successfully). - Run
make test
to check for possible errors. - Backup current openssl binary:
sudo mv /usr/bin/openssl ~/tmp
- Issue the command
sudo make install
. - Create symbolic link from newly install binary to the default location:
sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
- Run the command
sudo ldconfig
to update symlinks and rebuild the library cache.
Assuming that there were no errors in executing steps 4 through 10, you should have successfully installed the new version of OpenSSL.
Again, from the terminal issue the command:
openssl version
Your output should be as follows:
OpenSSL 1.1.1g 21 Apr 2020