Install an SSL certificate on CyberPanel

We have recently seen how to install CyberPanel. Security is crucial for any website, and using an SSL certificate is essential to protect your visitors’ data. CyberPanel makes it easy to install SSL certificates on your website. In this tutorial, we will see how to install an SSL certificate on CyberPanel step by step.

What is an SSL certificate?

An SSL (Secure Socket Layer) certificate is a digital file used to secure the connection between the web server and the user’s browser.

It therefore encrypts the data exchanged, protecting sensitive information such as passwords, credit card numbers and personal data.

Websites using an SSL certificate display a green padlock in the address bar and use the HTTPS protocol instead of HTTP.

Why have an SSL certificate?

It is important to have an SSL certificate on a website to :

  • Secure the data exchanged between the server and the browser;
  • Improve visitor confidence and website credibility;
  • Improve search engine optimization;
  • Comply with regulations and requirements of certain online services.

Install an SSL certificate on CyberPanel

CyberPanel gives you the opportunity to get a free SSL certificate for your website. You can also install a licensed SSL if you wish. But this article, we will use the free SSH certificate.

To do this, on the CyberPanel dashboard, you can see the SSL option as you can see in the image below, click!

Install an SSL certificate on CyberPanel

Then you will have three options as shown below.

Here is what each option represents:

MANAGE SSL: to get the free SSL certificate for your website.

HOSTNAME SSL: to get the SSL certificate for your hostname.

SSL MAIL SERVER: to obtain the SSL certificate for all subdomains linked to your mail server. Very important if you want to set up an email server for the site.

To obtain the SSL certificate for your website, click on the MANAGE SSL option. Then, select the domain name of your website. Now click on the Issue SSL option to get your free SSL.

You will then wait a few seconds for the installation of the certificate to finish.

And that’s it, you have the SSL certificate installed on your website. If you want to install for the subdomain linked to your email server, proceed in the same way.

Force HTTP to HTTPS redirection

From your website’s CyberPanel dashboard, go to Configurations -> Rewrite Rules.

Install an SSL certificate on CyberPanel

To redirect HTTP to HTTPS, select HTTP > HTTPS

Install an SSL certificate on CyberPanel

Or add the following configuration code snippet.

### Rewrite Rules Added by CyberPanel Rewrite Rule Generator

RewriteEngine On
RewriteCond %{HTTPS}  !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

### End CyberPanel Generated Rules.

After that, you save the rewriting rules.

That’s it, you’re done setting up an SSL certificate to protect your visitors’ information, improve user trust and optimize your online presence.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.