Installing OpenSSL
- Check the OpenSSL version.
1openssl version - Determine whether an upgrade is required.
- If the OpenSSL version is 1.1.1a or later, skip this section.
- If the OpenSSL version is earlier than 1.1.1a, upgrade it to 1.1.1a or later. For details, see Obtaining the Source Code and Compiling and Installing OpenSSL.
Obtaining the Source Code
- Obtain the OpenSSL source code.
- Copy the OpenSSL source code to the /home directory on the server.
If the server can access the Internet, you can also run the wget command on the server to download the source code.
1 2 3
cd /home wget https://codeload.github.com/openssl/openssl/tar.gz/OpenSSL_1_1_1d --no-check-certificate mv OpenSSL_1_1_1d openssl-OpenSSL_1_1_1d.tar.gz
Compiling and Installing OpenSSL
- Decompress the OpenSSL package.
1tar -xvf openssl-OpenSSL_1_1_1d.tar.gz

- Go to openssl-OpenSSL_1_1_1d and view files in it.
1 2
cd openssl-OpenSSL_1_1_1d/ ls

- Configure OpenSSL.
1./config --prefix=/opt/openssl

- Perform compilation.
1make -j20
- Perform installation.
1make install
Parent topic: Configuring the Compilation Environment