Secure a url that has a cname record

bones picture bones · May 2, 2012 · Viewed 32.7k times · Source

I have a site that has subdomains for each user and a wildcard SSL Cert

https://user1.mysite.com

https://user2.mysite.com

The question is can someone set a cname record such as user1.theirsite.com -> user1.mysite.com and have it still use https?

Will it work if they install a SSL Cert on their server to secure the connection?

Thanks

Answer

Alnitak picture Alnitak · May 4, 2012

The best way for this to work is if they arrange with you to have your SSL certificate include their "alias" as a Subject Alternate Name extension in your X.509 certificate.

This is the approach used by some CDNs when they host https sites for clients - they put all of the known site names that are hosted on one server in one large SSL certificate, and then the clients use CNAMEs to point their domain at the right CDN server.