Hello, I'm having the following problem: when I try to install a SSL Certificate via Let's Encrypt I get the following error:
mywebsite.com challenge did not pass: Invalid response from http://mywebsite.com/.well-known/acme-challenge/dliVUxI70M8nAmgaUduK0cCi7PSxOq-plNq5nAl0W4E: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>404 Not Found</title>
I have two virtual servers installed, does it for both sites. One already has an SSL certificate but when I try to get a new certificate for it (just like the other one) I get this error. If I remember correctly, I installed the SSL certificate when PHP script execution mode was still set to Apachemod_php, however I subsequently set it to FCGId.
I have tried to manually create a ".well-known/acme-challenge/" folder and placed and empty file inside - I can download it no problem.
Can anybody give me a clue how to fix this?
What solved the problem for me was installing certbot through the command line, following this tutorial (note it's a Digital Ocean tutorial, but I'm on OVH, so it should be completely host agnostic). "sudo certbot" and choosing the sites I want to install certificate to did the job and that was literally it. It was shockingly easy for a CLI operation :).