How To Install And Update OpenSSL On Linuxmint 18.3
link: https://www.youtube.com/watch?v=JqEtyA414hM
To Install And Update OpenSSL On Linuxmint 18.3
OpenSSL is an open-source implementation of the SSL and TLS protocols. It is so simple to install and update OpenSSL on an Ubuntu machine, and this tutorial deals with the same.
Installation
Before starting the installation of OpenSSL, get the current version of OpenSSL by using the following command.
linuxhelp ~ # openssl version
OpenSSL 1.0.2g 1 Mar 2016
After that, download the latest version of OpenSSL by deploying the following command.
After it is done, prepare the installation of OpenSSL by running the make command.
linuxhelp openssl-1.0.2o # make
making all in crypto...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/crypto'
/usr/bin/perl ../util/mkbuildinf.pl " gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM" " linux-x86_64" > buildinf.h
.
.
make[2]: Leaving directory ' /usr/src/openssl-1.0.2o/test'
make[1]: Leaving directory ' /usr/src/openssl-1.0.2o/test'
making all in tools...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/tools'
make[1]: Nothing to be done for ' all' .
make[1]: Leaving directory ' /usr/src/openssl-1.0.2o/tools'
After it, run the make test command as follows.
linuxhelp openssl-1.0.2o # make test
testing...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/test'
make[2]: Entering directory ' /usr/src/openssl-1.0.2o'
making all in apps...
make[3]: Entering directory ' /usr/src/openssl-1.0.2o/apps'
make[3]: Nothing to be done for ' all' .
make[3]: Leaving directory ' /usr/src/openssl-1.0.2o/apps'
make[2]: Leaving directory ' /usr/src/openssl-1.0.2o'
../util/shlib_wrap.sh ./destest
Doing cbcm
.
.
OpenSSL 1.0.2o 27 Mar 2018
built on: reproducible build, date unspecified
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: " /usr/local/ssl"
Once the command is executed, run the make install command which triggers the installation process.
linuxhelp openssl-1.0.2o # make install
making all in crypto...
make[1]: Entering directory ' /usr/src/openssl-1.0.2o/crypto'
making all in crypto/objects...
make[2]: Entering directory ' /usr/src/openssl-1.0.2o/crypto/objects'
make[2]: Nothing to be done for ' all' .
make[2]: Leaving directory ' /usr/src/openssl-1.0.2o/crypto/objects'
making all in crypto/md4...
make[2]: Entering directory ' /usr/src/openssl-1.0.2o/crypto/md4'
make[2]: Nothing to be done for ' all' .
.
cp libcrypto.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/libcrypto.pc
cp libssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/libssl.pc
cp openssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/openssl.pc
Let' s check the version now.
linuxhelp openssl-1.0.2o # openssl version
OpenSSL 1.0.2g 1 Mar 2016
If the old version is still displayed or installed before, please make a copy of OpenSSL bin file.