Let’s Encrypt is popular free SSL which can be used on cPanel/WHM as an AutoSSL provider. While installing it on cPanel you might encounter an error “A warning occurred while processing this directive – Failed to load information for the AutoSSL module “LetsEncrypt” “.
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. at /usr/local/cpanel/Cpanel/SSL/Auto.pm line 97. Cpanel::SSL::Auto::__ANON__(__CPANEL_HIDDEN__...) called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 121 Try::Tiny::try(CODE(0x1ec8ec8), Try::Tiny::Catch=REF(0x1d75d30)) called at /usr/local/cpanel/Cpanel/SSL/Auto.pm line 98 Cpanel::SSL::Auto::get_all_provider_info() called at whostmgr/bin/whostmgr12.pl line 647 main::autossl("autossl") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 366 Whostmgr::Dispatch::_do_call("autossl", HASH(0x1d738d8), HASH(0x1d73b18)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 178 Whostmgr::Dispatch::dispatch("autossl", 1, ARRAY(0x1d73a70)) called at whostmgr/bin/whostmgr12.pl line 221
This generally happens when auto ssl installer is unable to create file letsencrypt_tos_cache in proper directory.
Therefore to fix it, you can simply create the file using below command using root privileges on your cPanel/WHM server.
Now try accessing your Auto SSL interface under your WHM, issue should be solved. You will be now able to use Let’s Encrypt™ as an AutoSSL provider for your cPanel users. Also if you are looking to install Let’s Encrypt on your VPS with cPanel license installed on it then use below command.