The project is managed by a worldwide community of volunteers that use the Internet to communicate, plan, and develop the OpenSSL toolkit and its related documentation. Most network communication apps and tools that use TLS / SSL protocols may have some OpenSSL tools installed in them. If you’re going to be using applications and packages that depend on the latest versions of OpenSSL, you may have to manually install it on Ubuntu systems. The default toolkit of OpenSSL that comes with Ubuntu isn’t the latest. To get the latest, you must download it yourself and install it. and this brief tutorial is going to show you how. This post shows students and new users how to install the latest version of OpenSSL on Ubuntu 16.04 | 18.04 LTS servers and desktops. To get started with installing OpenSSL, follow the steps below:
Download OpenSSL Package
To get the latest OpenSSL installed on Ubuntu, go to its homepage and download the latest version. As of this writing, version 1.1.1 (LTS) is the latest. Click the link below to visit its download page. https://www.openssl.org/
Install OpenSSL Manually
Below are commands that will help you download and install the OpenSSL toolkit on Ubuntu 16.04 | 18.04 LTS systems., may also work on future versions. To download, run the commands below After downloading, run the commands below to install. After that, the version of OpenSSL you downloaded should be installed. however, all files, including binaries and man pages are installed under the directory /usr/local/SSL. Ubuntu’s default OpenSSL version is installed in the /usr/lib/SSL and it’s where apps that need to use SSL look by default. You’ll need to reference the version you installed. To ensure that Ubuntu uses this version of OpenSSL instead of the previous version you must update the paths for man pages and binaries. Edit the file /etc/manpath.config adding the following line before the first MANPATH_MAP: Run the commands below option Ubuntu default man page Then add the following highlighted line at the end of the lines as shown below. Save the file and exit. Then run the commands below to update the manual database. Now when you type man openssl command you’ll get the updated version of the man page for OpenSSL You can also update the execution path to include the new location for OpenSSL. run the commands below to open the Ubuntu environment configuration file. Then add the /usr/local/ssh/bin as shown in the line below. Use the exact path as shown. Save the file and exit. Restart Ubuntu and hopefully, your new OpenSSL version should be recognized by Ubuntu. Although some apps may now automatically use the new version of OpenSSL, existing programs (e.g. Apache, Nginx) may not as they are linked against the libraries from the Ubuntu version. You may have to manually use the newer version to rebuild the individual app to use the newer version of OpenSSL by referencing the new path. Enjoy! You may also like the post below: