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
