Search…

X3 Photo Gallery Support Forums

Search…
 
morgenius
Experienced
Topic Author
Posts: 43
Joined: 20 Aug 2014, 04:41

Let's encrypt SSL certificate issue

03 Feb 2022, 05:42

Hello, Karl!
Need your help!

What settings do I need to make in the htaccess file so that my Let's Encrypt SSL certificate is updated regularly?

When auto-renewing, Plesk on my hosting-provider web-server creates a .well-known/acme-challenge/ folder, in which it places the key file. For some reason, the contents of this folder are displayed by my site with a 404 error, https://morgunov.ru/.well-known/acme-challenge/test.txt , so automatic installation of the certificate is not possible. 

What I need to do to solve this problem?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Let's encrypt SSL certificate issue

03 Feb 2022, 06:27

The question is not clear. "Let's Encrypt" SSL certificates should never be "managed" or "updated" directly from your website, certainly not from a public area. Normally, SSL keys are stored in folders OUTSIDE the public web.
.well-known/acme-challenge/
I don't know why it places they key file there, and I don't know why it's called "acme-challenge". SSL keys should not be in public folders, as it's a file that the server uses when receiving/sending requests. Besides, ".well-known/" (starting with .dot) is a dir that is probably blocked by your server, because that's the point of this name.

Automatic installation of Let's encrypt, is normally done by 1. Shell / terminal, and that's how you update also from "certbot". 2. In some cases, you might have options for Let's encrypt in your hosting control panel also, but then your hosting control panel should manage it completely.
https://letsencrypt.org/getting-started/

This can't and shouldn't be managed from your website.