How to upgrade OpenSSL 1.1.0 to 1.1.1 in Ubuntu 18.04?

  1. Open a terminal (Ctrl+Alt+t).
  2. Fetch the tarball: wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz
  3. Unpack the tarball with tar -zxf openssl-1.1.1a.tar.gz && cd openssl-1.1.1a
  4. Issue the command ./config.
  5. Issue the command make (You may need to run sudo apt install make gcc before running this command successfully).
  6. Run make test to check for possible errors.
  7. Backup current openssl binary: sudo mv /usr/bin/openssl ~/tmp
  8. Issue the command sudo make install.
  9. Create symbolic link from newly install binary to the default location: sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
  10. 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.1a  20 Nov 2018

About Damon Luong

San Jose, California
This entry was posted in ubuntu. Bookmark the permalink.