While trying to generate your certificate, you may stumble upon this error text, in the logs. Below you can find the necessary steps to fix this issue.
Unauthorized SSL Issues:
- The first thing you will need to do is to check if root directory has any apache/ols restrictions
- If website has a .htpasswd implemented on the root directory, then let's encrypt can't reach the .well-known folder via http://domain.com/.well-known/
- Workaround is to create the .well-known folder on the root directory of the vhost and
append a .htaccess file within .well-known/ -
## .htaccess content
Require all granted
- Workaround is to create the .well-known folder on the root directory of the vhost and
- Save and try again.
How the error looks in audit logs: