CentOS 7 - компиляция openssl 1.1.1


Материал из Wiki - Iphoster - 'the best ever hosting and support

Перейти к: навигация, поиск

CentOS 7 - компиляция openssl 1.1.1

# yum install make gcc perl pcre-devel zlib-devel 
# cd /root/ 
# wget -c https://ftp.openssl.org/source/openssl-1.1.1d.tar.gz
# tar xvf openssl-1.1.1d.tar.gz
# cd openssl-1.1.1d
#./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl shared zlib
# make
# make install
# vi /etc/ld.so.conf.d/openssl-1.1.1d.conf
/usr/local/openssl/lib
# ldconfig -v 
/usr/local/openssl/lib:
       libssl.so.1.1 -> libssl.so.1.1
       libcrypto.so.1.1 -> libcrypto.so.1.1


# vi /etc/profile.d/openssl.sh
pathmunge /usr/local/openssl/bin

Перезаходим на сервер и проверяем:


# openssl version -a
OpenSSL 1.1.1d  10 Sep 2019
built on: Mon Nov 18 10:10:01 2019 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 -DVPAES_ASM -DGHASH_ASM - DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DZLIB -DNDEBUG
OPENSSLDIR: "/usr/local/openssl"
ENGINESDIR: "/usr/local/openssl/lib/engines-1.1"
Seeding source: os-specific
Индекс цитирования