Auto SSL failed to generate

goyote

Registered
Mar 20, 2018
4
0
1
darwin
cPanel Access Level
Root Administrator
Good afternoon,

Recently I have received following error message whey I was regenerate the SSL certificate from Cpanel.

The SSL certificate regenerated after removing the folder. Any idea why this happened? I have checked the ownership and permissions of the " .well-known" folder and everything seems to be fine.

Thank you very much
Code:
-------------error message from Cpanel
1:05:47 PM WARN The domain “www.example.com.au” failed domain control validation: The system queried for a temporary file at “http://www.example.com.au/.well-known/pki-validation/C2B738FA427048C41B7B1FCDCFB6FE63.txt”, but the web server responded with the following error: 403 (Forbidden). A DNS (Domain Name System) or web server misconfiguration may exist.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Hello,

Could you let us know the contents of the .htaccess file in the document root of this website? Ensure to replace real domain names and IP addresses with examples when pasting the contents.

Thank you.
 

goyote

Registered
Mar 20, 2018
4
0
1
darwin
cPanel Access Level
Root Administrator
Hi Michael,

Thanks for your reply.

The .htaccess is the Drupal 7.57 default .htaccess file: drupal 7.57


I suspect that this is not related to the contents of the .htaccess file as after I deleted the .well-known folder it was recreated during the openSSL check and seemed to be exactly the same as the folder I deleted but now the openSSL is working. No changes to the .htaccess were made.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
but now the openSSL is working. No changes to the .htaccess were made.
Hello,

It's possible the issue related to the ownership or permission values of the .well-known directory, but it's difficult to know for sure since it's already been deleted and re-created to solve the issue. Let us know if you notice any additional issues.

Thank you.
 

goyote

Registered
Mar 20, 2018
4
0
1
darwin
cPanel Access Level
Root Administrator
Hi Michael,

Thanks agian for your reply.

Do you know if there are any special requirements for the contents of the .well-known folder to be publically accessible? The ownership and permission values did not seem to change when it was deleted and re-created.

I've experienced this issue multiple times now and although I have a work around I would like to understand what's going on.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
I've experienced this issue multiple times now and although I have a work around I would like to understand what's going on.
Hello,

Could you open a support ticket the next time this happens so we can take a closer look to see what could be leading to the 403 error code during the AutoSSL validation attempt?

Thank you.