New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

AutoSSL with Cloudflare and restricted HTTP access-DNS-01 support for mail SAN?

Started by Wonder, November 14, 2026, 07:59:24 PM

Previous topic - Next topic

Wonder

Hello,

I'm running CWP 1.30.12 on AlmaLinux 10, using Cloudflare for DNS management and an external cloud firewall.

For security reasons, inbound HTTP/HTTPS traffic is restricted to Cloudflare's published IP ranges.

My DNS configuration is similar to this:

- `example.com` — Cloudflare proxied
- `www.example.com` — Cloudflare proxied
- `cpanel.example.com` — Cloudflare proxied
- `webmail.example.com` — Cloudflare proxied
- `mail.example.com` — DNS-only (not proxied, as required for mail services)

-The issue

When issuing a Let's Encrypt certificate through CWP AutoSSL, the main domain and proxied SANs are validated successfully, but validation fails when including `mail.example.com`.

Depending on the operation, CWP displays one of these messages:

- `None of SAN it is pointed.`
- `At this moment your domain can not be validated please try again in some minutes.`

I reproduced the same behavior on another server.

-Investigation and findings

I confirmed that CWP uses HTTP-01 validation through the following ACME configuration:

Le_Webroot='/usr/local/apache/autossl_tmp/'

Since `mail.example.com` is DNS-only, Let's Encrypt must connect directly to the server to complete HTTP-01 validation. However, the external firewall restricts inbound TCP/80 to Cloudflare IP ranges.

As a test, I temporarily allowed inbound TCP/80 from all IPv4 and IPv6 sources, then:
The certificate was immediately issued successfully, including all SANs.

After issuance, I removed the temporary firewall rule.

This is expected HTTP-01 behavior rather than a certificate issuance bug in CWP.

-Questions

1. Does CWP AutoSSL support DNS-01 validation using the Cloudflare API, including the main domain and all SANs?
2. If DNS-01 is not currently supported, is there any plan to implement it?
3. Is there an officially supported method to use certificates issued and renewed independently through `acme.sh` (DNS-01), while preserving CWP's certificate installation, mail services integration and automatic renewals?
4. Is there an officially recommended or supported solution for automatically issuing and renewing SSL certificates in this scenario, without requiring unrestricted inbound HTTP access?

Ideally, I would like to continue using CWP's built-in AutoSSL functionality. However, I'm also open to managing certificates through `acme.sh` with DNS-01 validation, provided they can be reliably installed and used by CWP and its associated services, including mail, without conflicts during future updates.

Temporarily opening TCP/80 works as a manual workaround, but I'm looking for a reliable, fully automated solution that can be applied consistently across multiple CWP servers.

Any guidance or recommendations would be greatly appreciated.

Thank you!