This error occurs when we try to install Let’s Encrypt SSL for domains from the control panel. Now let’s look into the different reasons for this error to occur.
Incorrectly mentioning the well_known path in /usr/local/vesta/bin/v-add-letsencrypt-domain.
The domain is not resolving to the correct server IP or it has an improper DNS record.
There is some connection problem.
There is no proper $domain variable in “v-add-letsencrypt-domain” file “force HTTPS” and “fix HTTP” is enabled in Cloudflare
Even though a DNS record in the parent zone is present, your zone doesn’t have the correct DNSKEY. As a result, your DNSSEC is broken. This blocks Letsencrypt to find a correct – signed – IP address. It might be due to any changes in the DNS provider. Your old provider might support have supported DNSSEC, whereas your new provider doesn’t.
Solutions: Now let’s see the suggestions our Support Engineers provide to our customers to resolve this error message.
Login to your server using SSH client
Make sure that the well_known path is correct.
Try re-installing the Control Panel if it is a fresh installation.
You would need to allow a connection between the let’s encrypt and server.
There must be a proper $domain variable in “v-add-letsencrypt-domain” file
Another option to resolve this error is to solve by running the below code:
Add Lets Encrypt Domain from command line
v-add-letsencrypt-domain USER DOMAIN
Change USER and DOMAIN to yours.
if In Vestacp, v-add-letsencrypt-domain command not found then
Download the file for v-add-letsencrypt-domain
wget https://raw.githubusercontent.com/serghey-rodin/vesta/master/bin/v-add-letsencrypt-domain -O $VESTA/bin/v-add-letsencrypt-domain
wget https://raw.githubusercontent.com/serghey-rodin/vesta/master/bin/v-add-letsencrypt-user 1 -O $VESTA/bin/v-add-letsencrypt-user
Add execute permission to both Script
chmod +x $VESTA/bin/v-add-letsencrypt-domain
chmod +x $VESTA/bin/v-add-letsencrypt-user
That’s It!