My application is running on scnv.io domain. I have a feature to allow customers to point CNAME of their domain to scnva.io.
One of my client reported that he is getting Certificate Error while accessing their pointed domain.
Testing the SSL of their domain from SSL Checker gives following warning
Create a vhost:80 to catch those HTTP requests and then forward them to: HTTPS://some.other.name/<request.domain.one/
or HTTPS://request-domain-one.some.other.name/
[and you can use a wild card cert so you don't have to change the cert every time you add a new customer/sub-domain]
I'm sure there are more (complicated) ways to solve this problem.
[but none of this is really anything to do with LE and the cert you have [which is working just fine ]
CNAMEs only “change” the resolved IP - they can’t change the URL (name).
So the URL would remain the “same”; only the IP would “change”.
Where the URL gets modified is in the HTTP vhost config (web server).
The web server hears requests for “http://SOME.URL” and sends a reply “go to https://NEW.URL”.
So the client changes his URL request to “https://NEW.URL”.
resolves that name and connects to your URL (securely).
Your server needs to differentiate customer1 from customer2 (somehow) in the requested URL forwarding. So that they can reach their own individual content.
Be that, https://cust1.your.site/ or https://your.site/cust1/ (makes no difference).
You may like one more than the other (visually); but they can work equally.