# How to test CAA & iodef notification functionality

**URL:** <https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968>\
**Category:** Help\
**Created:** [April 18, 2021, 3:08pm UTC](https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968 "2021-04-18T15:08:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![catharsis](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/catharsis/32/48964_2.png) [@catharsis](https://community.letsencrypt.org/u/catharsis)\
**Post date:** [April 18, 2021, 3:08pm UTC](https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968/1 "2021-04-18T15:08:50Z")

</div>

I have a LetsEncrypt certificate for my domains however, as a test, I've temporarily modified my CAA records for one domain to try to block LetsEncrypt from issuing certificates for the domain; I'm interested in verifying that certificate issuance will actually be blocked and that I get an e-mail notification to the address I specified in the iodef record.

Temporary CAA configuration for the domain (redacting actual domain name for privacy):

$ host -t caa [REDACTED].com  
[REDACTED].com has CAA record 0 iodef "mailto:certfuckery@[REDACTED].com"  
[REDACTED].com has CAA record 0 issue "nonexistentdomain.nul"

(Note: there are no CAA records for any subdomains)

With this configuration, LetsEncrypt (or anybody else) should refuse to issue a certificate for the domain and send a notice to the specified e-mail, right?

First thing I tried was a dry-run renewal of my existing certificate, and it went through successfully. (Not sure if the dry-run environment even checks CAA?)

Then I tried a force-renewal of my existing certificate, and it still went through

Then I requested a new certificate for a subdomain of my domain, and it went through as well.

Why are these not being blocked? Do I need to wait some period of time for trust to expire?

I do use Cloudflare for my DNS provider and I'm aware that if a certain feature if turned on, they automatically add several CAA records (including one for LetsEncrypt), however, I've turned that feature off and as far as I can tell the old CAA records are no longer cached anywhere.

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [April 18, 2021, 3:33pm UTC](https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968/2 "2021-04-18T15:33:51Z")

</div>

Hi @catharsis

> [@catharsis](#):
>
> and send a notice to the specified e-mail

as I know, iodef isn't implemented.

PS:

> [@catharsis](#):
>
> Then I requested a new certificate for a subdomain of my domain, and it went through as well.
> 
> Why are these not being blocked?

If you have questions, your domain name is required.

---

<div class="post-metadata">

**Author:** ![petercooperjr](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/petercooperjr/32/84698_2.png) [@petercooperjr](https://community.letsencrypt.org/u/petercooperjr)\
**Post date:** [April 18, 2021, 4:03pm UTC](https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968/3 "2021-04-18T16:03:32Z")

</div>

CAA is checked in staging, and you should be able to do your testing there. I just ran a test myself and got the expected `urn:ietf:params:acme:error:caa` error.

I think CAA results can be cached by the CA for up to 8 hours, though, so if you're doing lots of testing on the same domain name you may want to keep that in mind.

Let's Encrypt doesn't send iodef emails on failed issuance due to CAA. (Though of course, what you actually care about is what the CAs that you _don't_ use do on attempted issuance, since that's what CAA is supposed to mitigate. I don't know how common iodef support is in the industry at large.)

---

<div class="post-metadata">

**Author:** ![catharsis](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/catharsis/32/48964_2.png) [@catharsis](https://community.letsencrypt.org/u/catharsis)\
**Post date:** [April 18, 2021, 5:01pm UTC](https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968/4 "2021-04-18T17:01:24Z")

</div>

I tried it again after a few hours and I'm now getting the expected "CAA record prevents issuance" behavior. As per above, no iodef notification e-mail but ah well life goes on. Hopefully it will become more widely adopted eventually.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [May 18, 2021, 5:02pm UTC](https://community.letsencrypt.org/t/how-to-test-caa-iodef-notification-functionality/149968/5 "2021-05-18T17:02:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
