In this article, we will explain how to install OpenSSL 1.1.1 on your hosting account.
This kind of installation is necessary in many circumstances. For example, you may have difficulty deploying a Python application due to an outdated OpenSSL component.
What is Open SSL?
You could say that OpenSSL is a kind of encryption toolbox.
It includes :
- a library for general cryptography;
- a second library to implement the SSL protocol; and
- a command line.
How to Proceed
Here is how to install OpenSSL manually.
Step 1 — Connexion to N0C
If you wish to perform the rest of the operations in SSH, please refer to the article how to create an SSH key and connect to an account remotely.
If you prefer, you can also follow the instructions in the article How to use the MG panel terminal.
Step 2 — Executing Commands
Run the following command:
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar zxvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
Replace USER with your current N0C user account in the command below:
./config --prefix=/home/USER/openssl --openssldir=/home/USER/openssl no-ssl2
make
make test
make install
nano ~/.bash_profile
Enter the following code at the end of the file, and make sure to replace USER with your current N0C user account in the last instruction:
export PATH=$HOME/openssl/bin:$PATH
export LD_LIBRARY_PATH=$HOME/openssl/lib
export LC_ALL="en_US.UTF-8"
export LDFLAGS="-L /home/USER/openssl/lib -Wl,-rpath,/home/USER/openssl/lib"
Then, charge the configuration:
source ~/.bash_profile
Step 3 — Validation
Finally, check that everything is OK by entering the command:
openssl version
This command should return the following:
[xwmqkdmy@nodels31-eu ~]$ openssl version
OpenSSL 1.1.1g 21 Apr 2020