How to Install an SSL Certificate on Sentora?

Installing an SSL certificate on Sentora is a crucial step to securing your website and enhancing the trust of your visitors. The process involves generating a CSR code, purchasing an SSL certificate from a trusted CA, and configuring the certificate on the Sentora server.
The process is easy and can be completed in a few simple steps. So let’s get started.
CSR Generation
You have two options to generate a CSR code on Sentora: using a CSR generator or following a step-by-step tutorial. If you choose to use a CSR generator, it will automatically generate the code for you. If you prefer to generate the code manually, you can do it.
Once the CSR code is generated, you need to open the file using a text editor such as Notepad and copy its entire contents, including the tags “—–BEGIN CERTIFICATE—–” and “—–END CERTIFICATE—–“, into the corresponding box during the SSL order process.
After you complete the SSL order process, you will receive an SSL certificate via email, which you can then use to secure your website.
Install an SSL Certificate on Sentora
Let’s get started with the installation of SSL certificate on Sentora.
Merge your SSL Certificates
If you received the Root and Intermediate certificates in separate files, it’s time to combine them into a single file. This file will be referred to as the “Certificate Bundle.”
To merge the files, open a plain text editor like Notepad and copy the contents of the Root certificate file, followed by the contents of the Intermediate certificate. Make sure there are no blank lines between the two files.
Next, save the combined file and give it a descriptive name, such as domain_com.ca-bundle.crt.
Locate your CSR file
You will also need your Certificate Signing Request (CSR) file, which was generated during the SSL certificate creation process. This file should have a .csr extension and is typically named after your domain, such as domain_com.csr.
Access the Root User Account
To access the root user account in a terminal, you need to run either the sudo or su command.
Enable SSL
In case the SSL feature is not already enabled on your server, execute the following command to activate it:
a2enmod ssl
Refresh Apache
To apply the changes and activate the SSL certificate, you need to restart Apache. To do so, run the following command in the terminal:
service apache2 restart
Establish the Links Necessary for the Modules
Establish links for ssl.conf and ssl.load by running the following commands in the terminal:
ln -s /etc/apache2/mods-available/ssl.conf /etc/apache2/mods-enabled/ssl.conf
ln -s /etc/apache2/mods-available/ssl.load /etc/apache2/mods-enabled/ssl.load
Configure the Certificates
Go to Sentora > Admin > Module Admin > Apache Admin and paste the following code into the Global Sentora section
##################################################
# Apache VHOST configuration file
# Customized entries for Sentora
##################################################
NameVirtualHost *:443
# Configuration for Sentora control panel.
SSLEngine on
SSLProtocol SSLv3
SSLCertificateFile /etc/apache2/ssl/yourdomain.crt
SSLCertificateKeyFile /etc/apache2/ssl/yourdomain.key
ServerAdmin zadmin@localhost
DocumentRoot "/etc/Sentora/panel/"
ServerName id-network.org
ServerAlias Sentora.id-network.org
Redirect Permanent https://Sentora.id-network.org/
Note: Make sure to replace the names with your actual certificate and domain names.
Apache Restart
Restart Apache by running the following command:
sudo service apache2 restart
And that’s it! You’ve successfully installed an SSL certificate on your Sentora web hosting panel and can now access it through the HTTPS protocol.
Verify Your Installation
After successfully installing an SSL certificate on Sentora, it’s advisable to thoroughly check the new setup to ensure there are no errors or vulnerabilities. Utilize a robust SSL testing tool to receive an immediate report on all aspects of the SSL certificate and its configuration.