Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Error: Let's Encrypt validation status 400

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
63 posts
  • Page 7 of 7
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
viaricardo
Posts: 1
Joined: Thu Sep 24, 2020 12:42 pm

Os: CentOS 6x
Web: apache
Re: Error: Let's Encrypt validation status 400
  • Quote

Post by viaricardo » Wed Oct 21, 2020 2:03 pm

I will post something that worked for me.

*** Please read it all before start *** Do it at your own risk ***
*** Please read it all before start *** Do it at your own risk ***
*** Please read it all before start *** Do it at your own risk ***


Scenario:
First of all, my setup is a virtual machine with 3 network interfaces behind lan nat and the server need to respond all services on all interfaces. If you are not behind a Firewall NAT, let's assume you have two public ips at your server.
My VestaCP setup is:
VestaCP + Apache + Exim/Dovecot + FTP

Problem:
SSL Error 400 using let's encrypt
Server doesn't respond at all interfaces at same time.
At panel, with any IP configuration, I got a undesirable behaviour, at most of times it answered only at one interface or only one protocol.

Solution:
1) Check if the nat firewall rules are pointing right to your server. You need to do it for all active services ports, at my case it was:
- DNS (53) you could check if it is running with command:

Code: Select all

netstat -plnt |grep named
- FTP + SSL (21, 990) check:

Code: Select all

netstat -plnt |grep ftp
- Mail + SSL (25, 110, 143, 465, 587, 993, 995, 2525) check:

Code: Select all

netstat -plnt |grep exim
--and--

Code: Select all

netstat -plnt |grep dovecot
- Web + SSL (80, 443) check:

Code: Select all

netstat -plnt |grep httpd
If netstat+grep doesn't respond anything, the service not running could be your problem, so, *THIS POST WILL NOT HELP YOU* unless you fix the service first.

2) To check your firewall configuration from outside, you could check if the ports are open using this tool: https://www.yougetsignal.com/tools/open-ports/

2) BACKUP BEFORE , then edit the Apache Virtual Hosts Files both for 80 and 443 ports:
HTTP:

Code: Select all

/home/--username--/conf/web/--domain--.httpd.conf 
At first line, it's look like:

Code: Select all

<VirtualHost ---some-server-ip---:80>
Change the IP to an asterisk *, it will looks like:

Code: Select all

<VirtualHost *:80>
HTTPS:

Code: Select all

/home/--username--/conf/web/--domain--.httpd.ssl.conf
At first line, it's look like:

Code: Select all

<VirtualHost ---some-server-ip---:443>
Change the IP to an asterisk *, it will looks like:

Code: Select all

<VirtualHost *:443>
3) Restart Apache

Code: Select all

systemctl restart httpd
4) Go to desired account at VestaCP > WEB and click EDIT, Disable SSL and Let's Encrypt, Save, Enable it again, Save.


That's all worked for me. I hope it helps!
Top

inazeem
Posts: 7
Joined: Wed Jan 29, 2020 2:43 pm
Contact:
Contact inazeem
Website

Os: Ubuntu 17x
Web: apache + nginx
Re: Error: Let's Encrypt validation status 400
  • Quote

Post by inazeem » Mon Jan 18, 2021 10:14 am

Remove the alisas and try again. It works for me.

If that doesn't work and restart the server and try again.
Top

Leonard
Posts: 1
Joined: Wed Dec 08, 2021 9:49 pm
Contact:
Contact Leonard
Website Twitter

Os: Ubuntu 17x
Web: apache + nginx
Re: Error: Let's Encrypt validation status 400
  • Quote

Post by Leonard » Wed Dec 08, 2021 9:51 pm

inazeem wrote: ↑
Mon Jan 18, 2021 10:14 am
Remove the alisas and try again. It works for me.

If that doesn't work and restart the server and try again.
Worked for me, thanks!
Top


Post Reply
  • Print view

63 posts
  • Page 7 of 7
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password