Symptoms
When accessing the Manage AutoSSL screen in WHM, the Let's Encrypt plugin throws the following error:
Failed to load information for the AutoSSL module “LetsEncrypt”: Couldn't open /root/.cpanel/letsencrypt_tos_cache: No such file or directory at /var/cpanel/perl/Cpanel/SSL/Auto/Provider/LetsEncrypt/ToSCache.pm line 114.
Description
This error can occur due to a missing reference to a Let's Encrypt Terms of Service cache file.
Workaround
Recreating the empty file will allow the plugin to proceed:
- Log into your server via SSH as the root user
- Run the following command to create the file with the expected contents:
echo "https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf" > /root/.cpanel/letsencrypt_tos_cache