j-c-m / ubnt-letsencrypt

Let's Encrypt setup instructions for Ubiquiti EdgeRouter
472 stars 68 forks source link

Verify error:Invalid response from http:// #40

Closed nickvanbaelen closed 3 years ago

nickvanbaelen commented 3 years ago

Trying to set this up on my Edgerouter following the readme.

Initially, when trying to verify, I got the following error: x.x.x:Verify error:DNS problem: NXDOMAIN looking up A for x.x.x - check that a DNS record exists for this domain

Then I added the following DNS entry to my domain Name Type Content TTL x.x.x A <public ip> 24h

After waiting a few hours for it to propagate, I tried again getting the following error: x.x.x:Verify error:Invalid response from http://x.x.x/.well-known/acme-challenge/yTbuZSbFz5iZbzkuegIMEnARPTLQZhlPzg-a4qUvtkw [x.x.x.x]: Please add '--debug' or '--log' to check more details. See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

cat /config/.acme.sh/lighttpd.log outputs nothing, so the log seems to be empty

nickvanbaelen commented 3 years ago

It was actually an issue with me setting up the DNS entry the wrong way.

I was using the wrong public ip in the DNS A entry. I'm actually using dyndns (noip.com) to resolve my proper public ip. So once I set up this DNS entry (CNAME entry from x.x.x to my noip.com domain) the script worked flawlessly.

Thanks for this project. This saves me the hassle of manually updating the SSL certificate for my Edgerouter 👍