2020-10-21

How to install OpenSSL-1.1.1g from source on Ubuntu Server 18.04.LTS.x64


OPENSSL_DST="/opt/openssl-1.1.1g"
mkdir -p $OPENSSL_DST

OPENSSL_SRC="/opt/setup"
mkdir -p $OPENSSL_SRC;cd $OPENSSL_SRC
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar -xf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g

./config --prefix=$OPENSSL_DST --openssldir=$OPENSSL_DST '-Wl,-rpath,$(LIBRPATH)'

make;make test;make install

root@srv014:~# date;$OPENSSL_DST/bin/openssl version
Wed Oct 21 17:18:32 +07 2020
OpenSSL 1.1.1g  21 Apr 2020


root@srv014:~# date;$OPENSSL_DST/bin/openssl version -a
Wed Oct 21 17:18:42 +07 2020
OpenSSL 1.1.1g  21 Apr 2020
built on: Wed Oct 21 08:38:48 2020 UTC
platform: linux-x86_64
options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr) 
compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DNDEBUG
OPENSSLDIR: "/opt/openssl-1.1.1g"
ENGINESDIR: "/opt/openssl-1.1.1g/lib/engines-1.1"
Seeding source: os-specific
root@srv014:~# 





No comments:

Post a Comment