• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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