SSL Cert for a Domain with 301/302 redirect
Currently, we can't create a SSL certificate with SSLIt/Let's Encrypt for a domain, when this same domain redirects to another.
For example, if I redirect domainA.com to domainB.com, and I want to create a certificate for domainA.com, I get the following error :
Invalid response from https:/domainB.com/.well-known/acme-challenge/8dDWrjssqI1cLpY4CqkJaWNnpjoc5Pv9aBa4Sigiqqs : "404 Not Found
The requested URL was not found on this server."
The problem is that the check is made on the target domain, and not the domain in Plesk, because even the .well-known/acme-challenge gets forwarded.
For now, we are using this workaround (please see attached file)
But we think that Plesk should exclude the .well-known/acme-challenge folder when a 301/302 redirect is enabled, so that Let's Encrypt verification succeeds.
Ma Sc commented