A certificate is refused because of a CAA record
Let's Encrypt refuses a certificate when the domain's CAA records allow only other certificate authorities. Adding a record that allows letsencrypt.org fixes the refusal.
Symptoms
The certificate request fails, and the error from Let's Encrypt names CAA. The following lookup shows CAA records for the domain, and none names letsencrypt.org.
dig +short CAA example.comCause
A CAA record specifies which certificate authorities may issue certificates for a domain. Let's Encrypt's name in the record is letsencrypt.org.
Let's Encrypt uses the CAA record closest to the name it issues for. If the closest record is on a parent domain, that record applies.
Resolution
Add a CAA record that allows Let's Encrypt. If this server hosts the domain's DNS, run the following command.
urbestack-dns-record-add --zone example.com --name @ --type CAA --content '0 issue "letsencrypt.org"'If the domain's DNS is hosted elsewhere, add the same record there.
Check that the lookup includes the new record.
dig +short CAA example.comOutput 0 issue "letsencrypt.org"If the domain has
issuewildrecords and you're requesting a wildcard certificate, one of those records must also allow Let's Encrypt.Request the certificate again with
urbestack-cert-issue --name example.com.