Hostname SSL Installation for cPanel/WHM & WPSquared

Overview

This guide explains how to install or renew a hostname SSL certificate on servers running cPanel/WHM and WPSquared.
It is useful if:

  • The hostname shows SSL warnings

  • Services like WHM, cPanel, FTP, Mail are not secured

  • AutoSSL failed or did not update properly


Requirements

  • Root SSH access

  • Valid hostname (FQDN, e.g., server.example.com)

  • Proper DNS A record pointing to your server IP


Command (Run as Root)

curl -fsSL scripts.cpanelcentral.com/hostname_ssl.sh | bash

What This Script Does

  • Installs SSL for the server hostname

  • Applies certificate to:

    • cPanel (cpsrvd)

    • Exim (mail)

    • Dovecot (IMAP/POP3)

    • FTP service

  • Restarts required services automatically

  • Uses a reliable ACME method with fallback handling


Supported Platforms

  • cPanel / WHM servers

  • WPSquared servers


Notes

  • Ensure port 80 is open for validation

  • Avoid running behind misconfigured proxies (Cloudflare orange cloud without proper setup)

  • If hostname DNS is incorrect, SSL issuance will fail


Verification

After running the script:

  • Visit: https://your-hostname:2087

  • Confirm no SSL warning appears

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...

How to Secure a cPanel/WHM Web Server

Here are a few basic steps that you should keep in mind for keeping a server secure. 1) Strong...