Snippet

Following is quick and dirty snippet to perform a check for CAA Rechecking Bug against your sites.

#!/usr/bin/env python3
import requests

## This python3 code snippet checks for the bug reported on:
## https://community.letsencrypt.org/t/2020-02-29-caa-rechecking-bug/114591
## This script can be run as: `python3 letsencrypt_caa_bugcheck.py`

## Replace the value for domains with appropriate domains you want to check against.
domains = ["myfirstdomain.com", "myseconddomain.com"]

url = 'https://checkhost.unboundtest.com/checkhost'
for domain in domains:
  print('Testing LetsEncrypt CAA rechecking bug for:', domain)
  payload = {'fqdn': domain}
  req = requests.post(url, data=payload)
  print(req.text)