LetsEncrypt error 400 bad request

justinms66

New member
Joined
Dec 28, 2021
Messages
1
Hi,

I am following these instructions to get SSL on my domain. I am on Centos6.3 x64, DA 1.61.5. After I do that, when i go to my directadmin -> "SSL Certificates" - > "Generate from Letsencrypt", i get an error (see attached image).

Trying to run the command in ssh for debugging also gives the same error (link). Is this the right command to debug?
./letsencrypt.sh request_single DOMAIN.com 4096

Not sure what else to try for Error 400 and "Malformed account ID in KeyID header" running this script.
 

Attachments

  • Screen Shot 2021-12-28 at 4.16.20 PM.png
    Screen Shot 2021-12-28 at 4.16.20 PM.png
    375.3 KB · Views: 103
Is this the right command to debug?
I don't think so. That is to request an ssl certificate for your hostname.

You might want to update DA to the newest version first.

I presume you got letsencrypt=1 in your directadmin.conf file along with enable_ssl_sni=1 if all is well.
Try this first:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt

Check the /usr/local/directadmin/scripts/letsencrypt.sh file that it's version #VERSION=2.0.27 or higher.
Then try again.
 
Maybe related, maybe not, but I have a similar (minor) issue. I get a 400 bad request error when trying to visit vps20.jk.nl:2222. https://vps20.jk.nl is where I'm expected to be redirected to, but that's not happening. I've already tried the commands in the screenshot below last week, hoping it'd be a timed thing.


chrome_636uk8TKNo.jpg

mRemoteNG_eW4Hk2lRd6.jpg

Specs:
AlmaLinux 8.5
DirectAdmin 1.63.9
LetsEncrypt 2.0.30
 
Test with your own browser then. If I remove the S from https I won't get a 400 errror, tested with Firefox, Chrome and Edge.

The tester you used might not be able to work correctly with redirects. By the way, when I click that button on the testlink you gave. AVG immediately blocks for some malware issue. Probably false positive, but I just mention it.
And now I don't know how to remove that AVG block. :)
 
Very interesting. Well, I guess it's a caching issue then. Apologies! Carry on with your day.

Also, interesting to know AVG gives out a warning. I've checked immediately with some other tools online; nothing o_O
 
Yeah AVG does do some fales positives lately on multiple sites. Just puzzling how I get it removed now because it's the free version and not the one with the firewall.

Glad to here your issue is indeed fixed.
 
Got it removed. Now tested with the link you gave and that gives on my sites also the error 400. So this confirms the testing site can not handle the redirect.
 
Got it removed. Now tested with the link you gave and that gives on my sites also the error 400. So this confirms the testing site can not handle the redirect.
Have you tried with your own websites too? jk.nl yields the following result for example
 

Attachments

  • chrome_gEftYRuyLA.png
    chrome_gEftYRuyLA.png
    39 KB · Views: 62
Back
Top