변군이글루

[리눅스] Openssl(소스 컴파일) 업그레이드 본문

서___리눅스

[리눅스] Openssl(소스 컴파일) 업그레이드

변군 변군이글루 2017.02.20 11:50

Openssl(소스 컴파일) 업그레이드

1. 다운로드 링크
https://www.openssl.org/source/
# wget https://www.openssl.org/source/openssl-1.1.0e.tar.gz

2. 컴파일 설치
# tar xvfz openssl-1.1.0e.tar.gz
# cd openssl-1.1.0e
# ./config
# make
# make install

# which openssl
/usr/local/bin/openssl

3. 라이브러리 등록
# export LD_LIBRARY_PATH=/usr/local/lib64
or
# ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
# ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

4. 기존 설치 파일 백업 및 링크
# /usr/bin/openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
# mv /usr/bin/openssl /usr/bin/openssl_1.0.1e-fips
# ln -s /usr/local/bin/openssl /usr/bin/openssl
# /usr/bin/openssl version
OpenSSL 1.1.0e  16 Feb 2017

5. ldd(List Dynamic Dependencies) 공유 라이브러리 출력
# ldd /usr/bin/openssl
linux-vdso.so.1 =>  (0x00007ffe58782000)
libssl.so.10 => /usr/lib64/libssl.so.10 (0x000000388de00000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x0000003f2ea00000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x0000003f2ee00000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003f2aa00000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x0000003f2e600000)
libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x000000388da00000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003f24600000)
libz.so.1 => /lib64/libz.so.1 (0x0000003f24e00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003f23e00000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x0000003f2e200000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003f2f200000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003f28600000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003f24200000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f23a00000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003f25600000)

0 Comments
댓글쓰기 폼