I have a pretty simple question. Suppose I have a domain a.example
and I add a CNAME record for the apex/root of that domain pointing to another domain I own: b.example
. Suppose now that I want to support HTTPS: if you go to https://a.example
you end up at https://b.example
and have a HTTPS connection with b.example
and had one with a.cexampleom
.
In this case, do I need separate SSL certificates for both a.example
and b.example
? Or can I use the same one for both given that a.example
and b.example
are both in the SAN (Subject Alternate Name) list of the certificate? In fact, given that I end up at b.example
, do I even need a certificate for a.example
or have it in a SAN list, given that I'm never actually connecting to a server hosting a.example
, just getting redirected at the DNS level?