Install an ACME SSL Certificate on cPanel using SeFlowSSL CaaS (Sectigo ACME)
SeFlowSSL CaaS (Sectigo ACME) can be integrated with cPanel to automate SSL/TLS certificate issuance, installation, and renewal. Through ACME automation, certificates can be managed without manual intervention.
Before starting, ensure you have SSH access to the cPanel server and the ACME credentials provided by SeFlowSSL CaaS.
Prerequisites
- Server running cPanel and WHM.
- Root SSH access.
- Domain already configured on the server.
- SeFlowSSL CaaS ACME credentials.
- Internet connectivity to the ACME endpoint.
Step 1. Access the SSH Terminal
Connect to the server using SSH as the root user.
ssh root@server.example.com
You may also use the built-in WHM terminal:
- Log in to WHM.
- Open the Advanced section.
- Select Terminal.
- Confirm terminal access.
Step 2. Install ACME.sh
ACME.sh is a lightweight ACME client fully compatible with SeFlowSSL CaaS and cPanel environments.
curl https://get.acme.sh | sh
Step 3. Register the ACME Account
Register the ACME account using the endpoint and EAB credentials provided by SeFlowSSL CaaS.
~/.acme.sh/acme.sh --register-account \
--server https://YOUR_ACME_SERVER/directory \
--eab-kid YOUR_EAB_KID \
--eab-hmac-key YOUR_EAB_HMAC_KEY
Parameters to customize
YOUR_ACME_SERVERis the ACME endpoint provided by SeFlowSSL CaaS.YOUR_EAB_KIDis the assigned EAB identifier.YOUR_EAB_HMAC_KEYis the EAB authentication key.
Step 4. Issue the SSL Certificate
Request the certificate using the webroot validation method.
~/.acme.sh/acme.sh --issue \
--webroot /home/USERNAME/public_html \
--domain yourdomain.com \
--server https://YOUR_ACME_SERVER/directory
For multi-domain or SAN certificates, add additional --domain parameters.
~/.acme.sh/acme.sh --issue \
--webroot /home/USERNAME/public_html \
--domain yourdomain.com \
--domain www.yourdomain.com \
--server https://YOUR_ACME_SERVER/directory
Replace USERNAME with the cPanel account username associated with the domain.
Step 5. Automatically Install the Certificate in cPanel
After issuance, the certificate can be automatically installed into cPanel's SSL infrastructure.
~/.acme.sh/acme.sh --install-cert \
-d yourdomain.com \
--key-file /var/cpanel/ssl/apache_tls/yourdomain.com/combined.key \
--fullchain-file /var/cpanel/ssl/apache_tls/yourdomain.com/combined.crt \
--reloadcmd "/usr/local/cpanel/bin/apache_conf_distiller --update && /scripts/rebuildhttpdconf && /scripts/restartsrv_httpd"
Once completed, the certificate will be available in the SSL/TLS section of cPanel.
Verify the Installation
- Log in to cPanel.
- Open SSL/TLS Status.
- Verify the installed certificate.
- Check the expiration date and issuing certificate authority.
Automatic Renewal
ACME.sh automatically creates a scheduled renewal task to renew certificates before expiration.
To test the automatic renewal process:
~/.acme.sh/acme.sh --cron --force
If the command completes successfully, the system is correctly configured for automatic renewal through SeFlowSSL CaaS.
