Installing OpenSSL on Ubuntu Linux
This short tutorial shows you how to install OpenSSL on Ubuntu Linux Server. The process is very simple. For this tutorial, I'll be installing openssl version 0.9.8e. Linux kernel is 2.6.15-26-powerpc. I have used a Mac Mini (powerpc/ppc architecture). GCC version number is 4.0.3. Your configuration may be different from mine but the installation steps below should work fine for most configurations with little or no change at all (including other Linux distributions and even unixes e.g. MacOS X).
OpenSSL:
According to openssl.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.
OpenSSL is based on the excellent SSLeay library developed by Eric A. Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an Apache-style licence, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple license conditions. "
Before starting, 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. IMPORTANT: See Configuring Ubuntu Linux After Installation to install the development tools required to compile and install openssl from source code.
Steps to download, compile, and install are as follows. Note: Replace 0.9.8e with your version number:
-
Downloading OpenSSL:
Run the command below,wget http://www.openssl.org/source/openssl-0.9.8e.tar.gz
Also, download the MD5 hash to verify the integrity of the downloaded file. In the same folder, where you downloaded the OpenSSL file, do the following:wget http://www.openssl.org/source/openssl-0.9.8e.tar.gz.md5
The last two commands (above) generate two strings of alpha-numeric characters. Check to see if both strings are identical or not. If not, repeat the steps above from "Downloading OpenSSL". If yes, your file has been downloaded properly. Please note that if you are using openssl for a highly secure/critical setup (or for any other reason) then you should also check the PGP signatures (not covered in this tutorial for simplicity).
md5sum openssl-0.9.8e.tar.gz
cat openssl-0.9.8e.tar.gz.md5 -
Extracting files from the downloaded package:
tar -xvzf openssl-0.9.8e.tar.gz
Now, enter the directory where the package is extracted.cd openssl-0.9.8e
-
Configuring OpenSSL:
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl
Replace "/usr/local/openssl" above with the directory path where you want to copy the files and folders. Note: check for any error message. -
Compiling OpenSSL:
make
Note: check for any error message.
-
Installing OpenSSL:
As root (for privileges on destination directory), run the following.
With sudo,sudo make install
Without sudo,make install
Note: check for any error messages.
Thats it. OpenSSL has been successfully installed.
Please feel free to use the comments form below if you have any questions or need more explanation on anything. Use the icons below to share this tutorial with your friends.
tags cloud
popular searches
free download for mysql database server 5.1.5, php, linux, mysql mysql, mysql, java, install mysql, gearman, ubuntu, tools, source code, bison, mysql initialization, install cairo, laptop
Similar Tutorials:
- Installing Gearman application framework on Debian Linux
- Download, configure, compile, and install MySQL 5.6
- Generating prime nos in PHP using multiprocessing - Geaman with PHP client Part I
- How to download, compile, and install CMake on Linux
- Linux kernel data structures (Part 1) - the current macro


Comments (write a comment):
I cannot get exactly the same characters in step "downloading Openssl"
I've tried it about 5 times. what to do Posted by: Jeroen on Jun 21, 2011
Yes, you are right. There can be two issues either their site is down (currently not accessible via a browser too) or they came up with a newer version and removed the older version from their server.
I would recommend that you wait another day and try again but also make sure you can access www.openssl.org through a browser first.
I hope this helps.
Thanks. Posted by: Shahryar Ghazi on Jun 23, 2011
Please try now, I was able to download it a minute ago.
Thanks. Posted by: Shahryar Ghazi on Jun 23, 2011
I am trying to compile this on Ubuntu 11.04. after I type 'make', i would get this error:
http://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=2104
I got the patch downloaded, but not sure how to apply?! please help. Posted by: linda on Jul 28, 2011
Try downloading the latest version from http://openssl.org/source/. That should have the patch applied including other important bug and security fixes. Posted by: Shahryar Ghazi on Jul 30, 2011
I was able to follow the steps.. and it went smoothly good.
but the thing that got me confused a little bit was moving the files to /usr/local
what I did was that I copied the line as it is and executed it without problems..
Thanks,
D Posted by: Da ad on May 19, 2012
Thank you. It works absolutely fine ! Posted by: Waqar Ahmed on May 25, 2012