Unable to get Let's Encrypt Certificate Issued


You may run across an error in cPanel where you cannot get a certificate issued. Such errors look like:
WARN The domain “xxx.co.uk” has failed domain control validation (The system queried for a temporary file at “<a href="http://xxx.co.uk/893.BIN_AUTOSSL_CHECK_PL__.WivMnRXme0dGMGW6.tmp">”" target="_blank" class="externalLink ProxyLink" data-proxy-href="http://xxx.co.uk/893.BIN_AUTOSSL_CHECK_PL__.WivMnRXme0dGMGW6.tmp”" rel="nofollow">http://xxx.co.uk/893.BIN_AUTOSSL_CHECK_PL__.WivMnRXme0dGMGW6.tmp</a>”, but the web server responded with the following error: 403 (Forbidden). A <abbr title="Domain Name System">DNS</abbr> or web server misconfiguration may exist.). at bin/autossl_check.pl line 449.
5:34:12 PM WARN The domain “www.xxx.co.uk” has failed domain control validation (The system queried for a temporary file at “<a href="http://www.xxx.co.uk/893.BIN_AUTOSSL_CHECK_PL__.t_i6Vsd0dwCAxbpF.tmp">”" target="_blank" class="externalLink ProxyLink" data-proxy-href="http://www.xxx.co.uk/893.BIN_AUTOSSL_CHECK_PL__.t_i6Vsd0dwCAxbpF.tmp”" rel="nofollow">http://www.xxx.co.uk/893.BIN_AUTOSSL_CHECK_PL__.t_i6Vsd0dwCAxbpF.tmp</a>”, but the web server responded with the following error: 403 (Forbidden). A <abbr title="Domain Name System">DNS</abbr> or web server misconfiguration may exist.). at bin/autossl_check.pl line 449.

To resolve this, you need to modify your .htaccess file as it is blocking access to the required directory. The following lines will help (note: you may need to comment out some as required, typically the first line and the last line).
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/\d+\.BIN_AUTOSSL_CHECK_PL__\.\w+\.tmp$ [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

  Print


Comments


  Add Comment

Confirm Submission

Please enter the text from the image in the box provided, this helps us to prevent spam.



Powered by WHMCompleteSolution