All ArticlesDevOps2026-11-10T16:23:48+08:00

AutoSSL Fails to Renew Certificates? Check If CAA Records Block the CA

Your site fails AutoSSL certificate renewal even though DNS points to your server and HTTP validation runs. You will learn how to verify domain CAA records and configure WHM to permit your active certificate authority.

A website certificate renewal fails in cPanel AutoSSL, yet navigating to the HTTP-01 challenge path in a browser returns the expected token. The server resolves the domain correctly, web server access logs confirm the validation agent reached the .well-known/acme-challenge/ directory, and file permissions are standard. Despite passing Domain Control Validation (DCV), the AutoSSL log records an issuance failure: the Certificate Authority (CA) aborted the order because of a Certification Authority Authorization (CAA) record mismatch.

This failure pattern happens when DNS records permit one authority while the hosting server requests certificates from another. Diagnosing this requires understanding how public CAs evaluate CAA records, how DNS hierarchy traversal impacts subdomains, and how to audit these records directly from the command line before running AutoSSL.

How CAA Records Govern Certificate Issuance

Defined in RFC 8659, Certification Authority Authorization is a DNS resource record that allows a domain owner to declare which certificate authorities are allowed to issue certificates for their hostnames. Before a participating CA issues any public TLS certificate, its infrastructure is mandated by the CA/Browser Forum Baseline Requirements to query the domain's DNS for CAA records.

When no CAA record exists on a domain or its parent zones, any trusted CA can issue a certificate once DCV succeeds. However, the moment a single CAA record is published anywhere in the domain hierarchy, an explicit allowlist activates. Any CA not specified in that allowlist must refuse issuance, even if the party requesting the certificate controls the web root and passes HTTP validation.

In shared hosting and dedicated cPanel environments, administrators often manage certificate lifecycles using WHM's automated background queue. Regular log audits, as detailed in Reviewing WHM AutoSSL Logs Weekly to Catch Domains Before Renewal Fails, often reveal renewal errors days before a certificate actually expires. When a company's infrastructure team configures a CAA record restricting issuance to an enterprise provider such as DigiCert on their apex domain, AutoSSL running Let's Encrypt or cPanel (powered by Sectigo) on an application server will be blocked during the final signing phase.

Auditing CAA Records with dig

CAA records use a specific record structure consisting of flags, tags, and values:

  1. Flags: An unsigned integer between 0 and 255. The most common flag is 0 (non-critical). If set to 128 (critical), a CA that does not understand the specific tag must abort issuance.
  2. Tag: An ASCII string defining the property. Standard tags are issue (authorizes a CA to issue single-name and wildcard certificates unless overridden), issuewild (authorizes issuance explicitly for wildcard hostnames), and iodef (specifies an incident reporting URL or mailto address).
  3. Value: The quoted string identifying the authorized entity, such as "letsencrypt.org" or "sectigo.com".

To audit the active CAA records across your authoritative nameservers, execute dig directly against the domain and its parent zones.

# Query the subdomain directly against the default resolver
dig shop.example.com CAA +noall +answer

# Query the root apex against its authoritative nameserver
dig example.com CAA @ns1.exampledns.net +noall +answer

# Trace authoritative delegation to isolate caching or resolver divergence
dig example.com CAA +trace
# Illustrative output format showing a restricted apex CAA record
example.com.    3600    IN    CAA    0 issue "digicert.com"
example.com.    3600    IN    CAA    0 iodef "mailto:security@example.com"

If the query returns a record like the sample above, only DigiCert can issue certificates for example.com and any subdomains inheriting that record. If AutoSSL is configured to use Let's Encrypt or Sectigo, the request will fail immediately after DCV completes.

The Tree-Climbing and CNAME Trap

CAA record evaluation does not stop at the exact Fully Qualified Domain Name (FQDN) being provisioned. CAs are required by RFC 8659 to perform "tree-climbing" up the DNS hierarchy until they find a CAA record or hit the root domain.

If you request a certificate for api.service.example.com and no CAA record exists at api.service.example.com, the CA queries service.example.com. If no record is present there, it queries example.com. A single CAA record at example.com restricts every subdomain underneath it unless an explicit CAA record is added at a lower level to override the parent policy.

A secondary trap involves canonical name aliases. If a subdomain is aliased via a CNAME record, such as app.example.com pointing to client-lb.cloudprovider.net, the CA checks app.example.com. If no CAA record is returned, the CA must follow the CNAME target and inspect client-lb.cloudprovider.net and its parent zones. If the third-party infrastructure has restrictive CAA records, your certificate renewal can be blocked by records on a domain you do not own.

This behavior is structurally distinct from other record collisions, such as the apex restrictions discussed in Why a CNAME on Your Root Domain Breaks MX and TXT Records, because CAA tree-climbing is an external validation routine enforced by the issuer rather than an in-zone DNS protocol violation.

AutoSSL ProviderCAA TagPermitted Issuer ValueCommon AutoSSL Failure Log String
Let's Encryptissue, issuewild"letsencrypt.org"CAA record does not allow issuance
cPanel (Sectigo)issue, issuewild"sectigo.com"Certification Authority Authorization (CAA) check failed
cPanel (Legacy Comodo)issue, issuewild"comodoca.com"CAA record prevents issuance for provider

Resolving the Policy in DNS and Testing AutoSSL

To allow AutoSSL to complete renewals, you must update the DNS zone to include your active CA provider alongside any existing business-required providers. Multiple issue tags are fully supported and function as an OR condition.

If your authoritative DNS is managed in an external dashboard (like Route 53, Cloudflare, or an enterprise registrar), add the relevant records to the apex zone. If your cPanel server is authoritative for DNS, these records can be managed via the WHM Zone Editor.

For a system running Let's Encrypt, publish:

  • example.com. IN CAA 0 issue "letsencrypt.org"
  • example.com. IN CAA 0 issuewild "letsencrypt.org"

For a system running cPanel's default Sectigo engine, publish:

  • example.com. IN CAA 0 issue "sectigo.com"
  • example.com. IN CAA 0 issuewild "sectigo.com"

Once the records are saved and propagated across authoritative nameservers, trigger AutoSSL from the server CLI to test the renewal pipeline without waiting for the nightly cron job.

# Run AutoSSL check for a specific cPanel user
/usr/local/cpanel/bin/autossl_check --user=cpaneluser

# Monitor the live AutoSSL processing log for CAA acceptance
tail -n 50 -f /var/cpanel/logs/autossl/*/*
# Illustrative output format of a successful AutoSSL renewal run
[AutoSSL] Processing 'cpaneluser' ...
[AutoSSL] The domain 'shop.example.com' passed DCV pre-flight.
[AutoSSL] Requesting certificate from provider: Let's Encrypt ...
[AutoSSL] The provider issued the certificate.
[AutoSSL] The certificate for 'shop.example.com' was installed successfully.

If the command completes and reports the certificate is installed, the CA successfully validated the new CAA allowlist against your authoritative zone.

Post-Renewal Verification

Confirm the deployed certificate directly at the network layer to ensure the web server is serving the new certificate and that the old record restriction is cleared.

# Verify updated CAA answers directly from an authoritative nameserver
dig example.com CAA +short

# Inspect the active certificate presented by the web daemon
echo | openssl s_client -connect shop.example.com:443 -servername shop.example.com 2>/dev/null | openssl x509 -noout -issuer -dates
# Illustrative output format
issuer=C = US, O = Let's Encrypt, CN = R10
notBefore=Oct 24 10:00:00 2026 GMT
notAfter=Jan 22 10:00:00 2027 GMT

When AutoSSL fails on a site with valid DNS and working web routing, check the DNS CAA policy before altering web server virtual hosts or resetting .htaccess files. Querying the CAA records with dig up the domain tree reveals whether the Certificate Authority is simply honoring an authorization lock established elsewhere in your DNS infrastructure.