I have a hosted service and have been issuing domain names to clients in the form clientxyz.ourdomain.com. Now we want to offer clients the ability to specify their own domain and Alias (CNAME) it to our servers (e.g. product.clientdomain.com points to clientxyz.ourdomain.com).
The issue is with SSL -- all interaction take place over https. The cert is issued for our domain name *.ourdomain.com and hitting the site with the client's domain generates a certificate error.
I am not 100% but I think I have seen others do this automatically. What do I need to do to make this work? Install another certificate for each client that wants a custom domain? Is there an easier solution? Best case is something I program to happen automatically after a client makes the CNAME change on their end.