OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. If you would like to install the development package, which is libssl-dev:
$ sudo apt-get install libssl-dev
$ openssl version
OpenSSL 1.0.1f 6 Jan 2014
If it's up to date then nothing will be done, and Then to Install the latest
$ sudo wget -O /tmp/openssl.tgz https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
$ sudo tar -zxf /tmp/openssl.tgz -C /tmp
$ sudo cd /tmp/openssl-*
$ sudo ./config
$ sudo make
$ sudo make test
$ sudo make install
This will build and install OpenSSL in the default location, which is (for historical reasons) /usr/. If you want to install it anywhere else, run config like this:
$ sudo ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
$ sudo make
$ sudo make test
$ sudo make install
Finally, check your openssl version.
$ sudo openssl version
Comments (0)