Page 3 of 6

Re: Error: Let's Encrypt validation status 400

Posted: Wed May 22, 2019 5:45 am
by hotbed
I run debian with nginx and to fix this I went to:

/home/admin/conf/web/domain.com.nginx.conf

and deleted this line (can't remember if I personally added it to force https on my server domain)

Code: Select all

return         301 https://domain.com;
Then tried to reinstall lets's encrypt again (previously tried unchecking it then checking it from the control panel). And it worked! SSL for the control panel is back, haven't tested for exim and dovecot as yet. Deleting the lso worked for ssl on user account domains updated with v-update-letsencrypt-ssl (let's encrypt never deleted so hopefully it should work with the cron job)

If you use apache I suggest you configure your htaccess file and see if that works. Given that someone had an issue with cloudflare forcing https maybe auto-updating isn't working that well and Let's Encrypt can't communicate to renew your certificate because you're forcing https which you don't have.

Here's to the next three months.

Re: Error: Let's Encrypt validation status 400

Posted: Fri May 24, 2019 3:18 am
by compiz
I am having the same problem in my server as well and I don't have the return 301 line in my /conf

Re: Error: Let's Encrypt validation status 400

Posted: Thu Jun 06, 2019 4:59 pm
by Mariop
Colleagues, did not appear new information?

Re: Error: Let's Encrypt validation status 400

Posted: Fri Jun 07, 2019 9:40 am
by positiv
What worked for me:

In Cloudflare > Crypto > SSL set to OFF & Always use HTTPS set to OFF
/usr/local/vesta/bin/v-add-letsencrypt-domain user domain > Success!
In Vesta CP > User > Rebuild Web
Wait 60 seconds.
Return CF settings to previous setting.

Re: Error: Let's Encrypt validation status 400

Posted: Tue Jun 11, 2019 11:13 pm
by Melih
I using CF and i had this problem too.

You can also try >>> viewtopic.php?f=11&t=18593&start=10#p77111

Re: Error: Let's Encrypt validation status 400

Posted: Thu Jun 13, 2019 12:42 pm
by SerratedMind
All given fixes did not work for my servers. The only thing that did work was removing any configuration that was forcing https for each site. This was the case for both nginx+php-fpm and only apache2. Hopefully this is useful for someone else as well.

Re: Error: Let's Encrypt validation status 400

Posted: Tue Jul 09, 2019 9:42 am
by zumi
Hello!

Any fix found yet?
Both my Vesta servers are experiencing this same issue. I've waited for a update to fix this problem but the latest update didn't help at all.
I've now tried several fixes that people has suggested on the forums. Nothing has helped so far.

This issue is driving me crazy as I've waited so long for a fix but nothing has changed. Now I have 3 domains waiting for installation but they need also Let's Encrypt so I can't continue

Re: Error: Let's Encrypt validation status 400

Posted: Mon Jul 15, 2019 11:22 pm
by zumi
Any update?

Re: Error: Let's Encrypt validation status 400

Posted: Tue Jul 16, 2019 1:11 pm
by DuronBR
I was able to resolve after deleting invalid DNS records.

Re: Error: Let's Encrypt validation status 400

Posted: Wed Jul 24, 2019 3:51 am
by rogeriotaques
positiv wrote:
Fri Jun 07, 2019 9:40 am
What worked for me:

In Cloudflare > Crypto > SSL set to OFF & Always use HTTPS set to OFF
/usr/local/vesta/bin/v-add-letsencrypt-domain user domain > Success!
In Vesta CP > User > Rebuild Web
Wait 60 seconds.
Return CF settings to previous setting.


I'm having the same issue with 3 VPS running VestaCP + CloudFlare!
After trying most of all the suggestions from here, this one was the one that helped me out!
Just annoyed by the fact that this is a toooo long manual process!
Is there any suggestion on how to automate this?