How to Install Let’s Encrypt SSL in Cyberpanel

Let’ Encrypt SSL is an SSL that is offered for free. Cyberpanel comes with features that allow you to quickly install Let’s Encrypt SSL for your domain, mails and server hostname. Here, we look at how we can make use of this free SSL for our domains in Cyberpanel.

Issue SSL for your domain

  • Login to Cyberpanel
  • On your left panel bar, go to Websites>>List Websites
  • Click Issue SSL next to the domain you want to install SSL for.
  • Once installed, add this code to the .htaccess file in public_html folder
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Issue SSL for subdomains (child domains)

Subdomains are referred to as child domains in Cyberpanel. To issue SSL for a child domain, follow the steps below:

  • Login to Cyberpanel
  • Go to Websites >>List Child Domains
  • Your subdomain will be listed there if it is created. If its not listed there, please create the subdomain first before attempting to install SSL.
  • Click Issue SSL next to the subdomain of choice.
  • Once installed, add the following code inside the subdomain folder
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Issue SSL for hostname

Hostname refers to the name of the server. It is normally used to access the server instead of an IP because it is easier to remember a hostname than an IP address. eg serve1.truehost.cloud is easier to remember than 136.243.76.154

Also, hostname are better because you can install an SSL easily on a hostname than on an IP.

To install SSL for your hostname:

  • Login to Cyberpanel
  • Go to Websites>>Create Website.
  • On the Domain Name section, enter the subdomain you want to use as hostname
  • Once you fill in the form, click Create Website.
  • On your left side bar, go to SSL>>Hostname SSL
  • Select your subdomain name from the drop down menu
  • Click Issue SSL

Issue SSL for mail server

Most times, you may will need to use your email with mail clients such as Outlook, or mobile phone email applications or even just contact forms. To connect these devices to your email securely, SSL connection is provided. But for SSL based settings to work, you need SSL installed on the mail server.

To install SSL on the mail server for a domain:

  • Login to Cyberpanel
  • On your left side bar, go to SSL>> Mailserver SSL
  • Select your mail subdomain eg mail.example.com
  • Click Issue SSL

You can now connect to your mail clients or SMTP using SSL settings with the Incoming and Outgoing hosts as mail.example.com

Was this article helpful?

Leave A Comment?