CAA and Certificate Transparency
Who can issue a certificate for your domain?
Name your issuers in DNS and watch the public logs for certificates you don’t recognise.
Added Updated
What to do
If someone obtains a valid certificate for your hostname, browsers can accept it as proof of your site’s identity. You have two ways to keep track of issuance.
- CAA records tell certificate authorities which of them may issue for your domain. Every public CA must check before issuing.
- Certificate Transparency records issuance in public logs. Monitoring your domain can alert you when an unfamiliar issuer appears.
How to check
dig +short example.com CAA
An empty answer means there is no CAA record at that name. Check its parent domains for an inherited policy before concluding that issuance is unrestricted.
Search crt.sh for your domain to see certificates logged for it. Look for issuers you don't use and hostnames you don't recognise.
How to fix it
Add a record for each CA you use, and one for where to send reports:
example.com. CAA 0 issue "letsencrypt.org"
example.com. CAA 0 iodef "mailto:security@example.com"
With an ACME CA that supports it, you can go further and pin issuance to your own account (RFC 8657):
example.com. CAA 0 issue "letsencrypt.org; accounturi=https://acme-v02.api.letsencrypt.org/acme/acct/123456"
Account binding tells that CA which ACME account may request certificates while the record is in effect.
For monitoring, sign up for a Certificate Transparency alert service. Several CAs and CDNs run free ones.
Sources
- RFC 8659: DNS Certification Authority Authorization (CAA) Resource Record fetched
- RFC 8657: CAA record extensions for account URI and ACME method binding fetched
- crt.sh: certificate search fetched
Changelog
- Clarified inherited CAA records and what public logs show.
- First version.