• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Let's Encrypt SSL certificate installation failed

PierreL

New Pleskian
Hello community,

I've just started the setup of my web site on hostforlife. They provide plesk as my control panel. And that's great.

But when trying to setup let's encrypt, there comes the problem.

I got the following error message when i press the "install" button:
Capture.PNG

Error: Let's Encrypt SSL certificate installation failed: Challenge marked as invalid. Details: The key authorization file from the server did not match this challenge [Kts_VVDn1LpkO6CkdEsbsfUPpgtPJvyvHTboogNISYs.0MfJ-6Uztn9ft_oH_0oMRmk7q_NY_XC7da5ZqZhtjKc] != [Hello World!]

error.PNG

At hostforlife support they told me they can't help me on that. So here, I'm.

Any idea what's going wrong ?

I have the feeling that the "Hello world" is ... strange ?

Pierre
 
Hi PierreL,

pls. note, that the Plesk Let's Encrypt Extensions logs to your "panel.log", where you should be able to investigate possible issues/errors/problems. If you need help with your investigations, pls. consider to post the corresponding log - file entries, so that people willing to help you have something to start with their investigations.

In addition, pls. note as well, that Plesk support several operating systems, so it is always recommended to post at least the following informations:
  • Your operating system
  • Your current used Plesk version ( inkl. #MU )
  • Your current used Plesk Let's Encrypt Extension version


Additional informations:



Sometimes, it is as well a good idea to change the log - level ( TEMPORARILY! ), to get more informations in Plesk - log - files:




Sometimes, it is as well a good idea to change the log - level ( TEMPORARILY! ), to get more informations in Plesk - log - files:

 
Thank you for your reply. Unfortunatly, I have no clue where to find those information
  • Your operating system
  • Your current used Plesk version ( inkl. #MU )
  • Your current used Plesk Let's Encrypt Extension version
Also, I don't have the right to setup the logs, and i don't have acces to any log (except the one from iis).

All I can see is http traffic

And there is this request wich is targetting let's encrypt.

GET /.well-known/acme-challenge/irupL4EVJCE8C3UK7VMG7pubDD2g4UaEcPmm42SyuvQ - HTTP/1.1
log-browser-client.png
195
The response is a 200 http status.
 
Last edited:
So here is the os version and the plesk version.
1. We use Windows Server 2012 R2
2. Plesk Onyx Version 17.0.17
3. It should be the same with Plesk version

Does this help ?
 
I wanted to provide you the solution to my problem, so that you may help other user.

Im using a net core application with mvc.

The problem is that letsencrypt target a folder .well-know inside the application. As it doesnt exist, and that no route is targeting it; mvc return a 404. Then certifacte was not able to work.

So the trick is to add the following code on the configure method from startup.cs

app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @".well-known")),
RequestPath = new PathString("/.well-known"),
ServeUnknownFileTypes = true // serve extensionless file
});

And you also need to add the folder to the root of the website

And voila.

Pierre
 
Back
Top