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.
I've contacted Plesk support :
It just seems that Nginx is needed to do this, too bad this info is not showed on Plesk web-UI.
But happy to be able to do this now
Already available ?
Some explanations could be welcome...
Since this feature suggestion was created, some things have changed and the option to create a certificate is no more showed when domain is set with forwarding hosting type...
This is a normal scenario to setup Forwarding Domains which have their own SSL. This should be straight forward without a bunch of hacking and tricks..
Ma Sc commented