Install OpenSSL Manually On Linux
Disclaimer: Accessing the information on this page means you agree to the Sites Privacy Policy & Terms of Use Agreement.
According to openssl(dot)org : “The OpenSSL Project is a collaborative effort to develop a robust, commercial–grade, full–featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library. 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.
Before start installation please check to see if there is
a latest version available to download?
Visit http://www.openssl.org/source/
to find out about the available versions latest version.
Steps to download, compilation, and then installation are as follows. Here I am going to install 1.0.1g so please replace 1.0.1g with your version number:
Step – 1: Downloading OpenSSL:
Run the command as below:
$ wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
Also, download the MD5 hash to verify the integrity of the downloaded file for just verification purpose. In the same folder where you have downloaded the OpenSSL file from the website:
$ wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz.md5
$ md5sum openssl-1.0.1g.tar.gz
$ cat openssl-1.0.1g.tar.gz.md5
Step – 2: Extract files from the downloaded package:
$ tar -xvzf openssl-1.0.1g.tar.gz
Now, enter the directory where the package is extracted like here is openssl-1.0.1g
$ cd openssl-1.0.1g
Step – 3: Configuration OpenSSL
Run below command with optional condition to set prefix and directory where you want to copy files and folder.
$ ./config –prefix=/usr/local/openssl –openssldir=/usr/local/openssl
You can replace “/usr/local/openssl” with the directory path where you want to copy the files and folders. But make sure while doing this steps check for any error message on terminal.
Step – 4: Compiling OpenSSL
To compile openssl you will need to run 2 command: make, make install as below:
$ make
Note: check for any error message for verification purpose.
Step -5: Installing OpenSSL:
$ sudo make install
Or without sudo,
$ make install
That’s it. OpenSSL has been successfully installed. You can run the version command to see if it worked or not as below:
$ /usr/local/openssl/bin/openssl version
OpenSSL 1.0.1g 7 Apr 2014
This article is contributed by RootLinuxBlog. If you like RootLinuxBlog and would like to contribute, you can submit an article using contact us from. See your article appearing on the RootLinuxBlog main page and help other Techies.
Please write comments if you found any error with the above article would really help us to serve you a better way. Thank you…