• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Plesk Let's Encrypt extension still leaves garbage behind in .well-known/acme-challenge/ directories

burnley

Regular Pleskian
Posted my question here as well, since it's become a major nuisance for us and we want it fixed:
[FIXED BUG] Let's Encrypt challenge files are not removed from .well-known/acme-challenge/ directories

Just stumbled on this article after a major clean up on our Linux plesk servers, littered with millions of such stale files. Now running Plesk Obsidian
Version 18.0.23 Update #3 with Let's Encrypt extension Version 2.8.6-571 on all of them since 5th of February and we're still seeing thousands of challenge files created and left scattered around. Both in /var/www/vhosts/<vhost>/httpdocs/.well-known/acme-challenge/ as well as /var/www/vhosts/default/htdocs/.well-known/acme-challenge/


How should we configure Plesk to have this issue fixed once and for all? Reading Managing Let’s Encrypt Settings I haven't found anything that tackles the removal of old files. Are we supposed to set up our own cron jobs for this?
 
There should be a cronjob configured to remove these files if they are older than 1 month:

Bash:
$ sudo crontab -l -u psaadm | grep "remove-expired-tokens"

Output should be:
Code:
0       0       *       *       0       /opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/letsencrypt/scripts/remove-expired-tokens.php'
 
Back
Top