티스토리 뷰

___리눅스

OpenSSL 최신버전으로 업그레이드(설치)

변군 변군이글루 2020. 4. 21. 13:59

OpenSSL 최신버전으로 업그레이드

OpenSSL Downloads
https://www.openssl.org/source/

현재 버전
$ openssl version
OpenSSL 1.0.2k-fips  26 Jan 2017

공유 라이브러리
$ ldd /usr/bin/openssl
        linux-vdso.so.1 =>  (0x00007fffc2b5f000)
        libssl.so.10 => /lib64/libssl.so.10 (0x00007fb7c9aa8000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fb7c985b000)
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fb7c9572000)
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fb7c936e000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fb7c913b000)
        libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fb7c8cd8000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fb7c8ad4000)
        libz.so.1 => /lib64/libz.so.1 (0x00007fb7c88be000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fb7c84f0000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fb7c82e0000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fb7c80dc000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fb7c7ec3000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb7c7ca7000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb7c9d1a000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fb7c7a80000)
        libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fb7c781e000)

최신 버전 다운로드
$ wget https://www.openssl.org/source/openssl-1.1.1f.tar.gz
$ tar xvfz openssl-1.1.1f.tar.gz
$ cd openssl-1.1.1f/
$ ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared
$ make
$ make install

라이브러리 등록 및 링크 설정
$ vim /etc/ld.so.conf.d/openssl-1.1.1f.conf
/usr/local/ssl/lib
$  ldconfig -v

$ ln -s /usr/local/ssl/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1
$ ln -s /usr/local/ssl/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
$ mv /usr/bin/openssl /usr/bin/openssl_1.0.2k-fips
$ ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

신규 버전
$ openssl version
OpenSSL 1.1.1f  31 Mar 2020
댓글
댓글쓰기 폼