9 steps to install OpenSSL source code under Linux

Operating System: CentOS 7

OpenSSL Version:openssl-1.1.0c.tar.gz

The OpenSSL download address is: https://www.openssl.org/source/

 

1. Put the downloaded compressed package in the root directory / .

2. Unzip the folder and execute the following command:

      tar -xzf openssl-1.1.0c.tar.gz

      Got openssl-1.1.0c folder.

3. Enter the decompression directory and execute the following command:

     cd openssl-1.1.0c

4. Set the Openssl installation path, (  --prefix  ) parameter is the directory to be installed, and execute the following command:

     ./config --prefix=/usr/local/openssl

5. Execute the command ./config -t

6. Execute make , compile Openssl, and the compilation needs to wait for a certain time.

7. Execute make install to install Openssl. The installation also takes a certain amount of time.

8. Execute the following command to view the dependencies of openssl.

[root@localhost openssl-1.1.0c]# cd /usr/local

[root@localhost local]# ldd /usr/local/openssl/bin/openssl 

linux-vdso.so.1 =>  (0x00007ffcdb7dd000)

libssl.so.1.1 => not found

libcrypto.so.1.1 => not found

libdl.so.2 => /lib64/libdl.so.2 (0x00007f54ef8fd000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f54ef6e1000)

libc.so.6 => /lib64/libc.so.6 (0x00007f54ef31e000)

/lib64/ld-linux-x86-64.so.2 (0x00007f54efb16000)

9. Check the absolute path and version of openssl, and execute the following command.

[root@localhost local]# which openssl

/usr/bin/openssl

[root@localhost local]# openssl version

OpenSSL 1.0.1e-fips 11 Feb 2013

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326978055&siteId=291194637