Skip to main content

AutoSSL DNS DCV errorr with LetsEncrypt

Comments

2 comments

  • Mise

    mistery solved.  
    If this could be of some help for similar problems, the cause was when LetsEncrypt is using the AWS network for their requests. 

    It was not the fault of AutoSSL, it works well. As everybody knows the AWS network is massively used for malicious scanning and spam. Some of the LE ip's were blocked inside block lists because a past malicious activity of related ASN and CDIR with a significant percent of ip's.

    This was the cause for the random behavior with the renewals, depending from the IP origin. Some of LE ip's belonged to ISGR, while others to AWS. In a first time I reviewed only two ip's  from ISGR, and from there the mess until I have realized the other AWS ips. 

    An analysis of their DNS petitions by launching a renewal:

    /usr/local/cpanel/bin/autossl_check --user=username

    and then monitoring with:

    tcpdump -i any -n port 53 | grep acme 

    it can show the renewal traffic, and it can help to extract and discard the possible ips blocked

    Also, it is needed allowing one exception into the mod_security rules: 

    SecRule REQUEST_URI "@rx ^/\.well-known/acme-challenge(/.*)?$" "phase:1,id:199990,nolog,allow"

    although note this is a risky situation because the possibilities of exploitation of that folder: 

    https://www.zscaler.com/blogs/security-research/abuse-hidden-well-known-directory-https-sites

    therefore it can request of more measures to limit the creation of files into that folder, and some monitoring. 

    Also one should be aware about LE don't facilitate their IP ranges neither detailed information of errors. The ISGR ips ranges can be whitelisted, although no the AWS because this is very risky. 

    The "Lets Debug" online tool is mostly an useless thing. And careful is needed with consecutive attempts of a domain renewal in order to understand the failures. Because it can cause a blockage of the domain renewal. In their public board there are advices to shutdown the firewalls to try the success in the renewals. Don't do it, it is a very bad idea. .

    Hope it helps, and good luck in case of errors in the renewal process. 

     

     

    0
  • cPRex Jurassic Moderator

    Thanks for sharing that solution!

    0

Please sign in to leave a comment.