Securing your CyberPanel hostname with an SSL certificate is crucial to ensure secure connections for managing your server and websites. When you access your Cyberpanel server with the hostname. you may get an error like this below. Don’t worry, that’s why we are installing a hostname SSL to make remove the error.

Prerequisites #
Before setting up a hostname SSL on CyberPanel, make sure the following prerequisites are met:
- CyberPanel Installed: CyberPanel should be properly installed on your server. If you haven’t installed CyberPanel yet, you can follow the official CyberPanel Installation Guide.
- Domain or Subdomain for Hostname: You must have a domain or subdomain (e.g.,
server.example.com
) pointing to your server’s IP address. This domain/subdomain will serve as your server’s hostname. If you have not set up a subdomain to be used as hostname, see this. - Valid DNS Configuration: The domain or subdomain used as the hostname should have a valid A record in the DNS, pointing to the IP address of your server. If you do a ping test of the domain/subdomain, it should return the IP of the server. E.g w want to issue an SSL on percona.truehost.cloud, hosted on server 91.134.244.66

4. Set the domain or the subdomain to be the hostname of the server. You can do this by accessing the server via SSH. The run this command to set the hostname: hostnamectl set-hostname yourSubdomain where yourSubdomain is the actual subdomain.
E.g hostnamectl set-hostname percona.truehost.cloud

Step 1: Log in to CyberPanel #
After setting the hostname log in to your Cyberpanel server using your IP as guided here
Step 2: Access SSL Settings #
Once you log in to the panel, go to SSL → Manage SSL → Hostname SSL.

Step 3: Issue Hostname SSL #
You can now issue the SSL certificate for the hostname:
- Under the Issue SSL for Hostname section, your new hostname subdomain should already be populated. Select it from the dropdown as in the image below.
- Click on the Issue SSL button to generate and install a free SSL certificate for your hostname via Let’s Encrypt. CyberPanel will automatically generate and install the SSL certificate for the specified hostname.

Step 4. You can verify SSL
This by accessing the hostname on your browser to confirm that it has an SSL. See below;
