Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL inheritance on DNS CNAME

Tags:

ssl

dns

cname

If I create an SSL Certificate for secure.mydomain.com and I create the following DNS record:

alias.otherdomain.com CNAME secure.mydomain.com

So that alias.otherdomain.com points to secure.mydomain.com, will the SSL certificate be valid if I surf to https://alias.otherdomain.com ?

Thanks

like image 471
Mark Avatar asked Sep 03 '11 14:09

Mark


People also ask

Does CNAME need SSL?

If you choose the CNAME URL implementation option, an SSL Certificate will be required for the new subdomain.

Can you use https in a CNAME?

When both domains are in the SSL cert list, your CNAME can redirect with HTTPS. This is how CDN service provider such as Incapsula with works with HTTPS. They just create a "Multi-domain" SSL cert for you. Any way, this kind of SSL cert is for business use in most case and are generally pretty expensive.

How does CNAME work in DNS?

A Canonical Name or CNAME record is a type of DNS record that maps an alias name to a true or canonical domain name. CNAME records are typically used to map a subdomain such as www or mail to the domain hosting that subdomain's content.

What is DNS Cname example?

CNAME stands for Canonical Name. A common example is when you have both example.com and www.example.com pointing to the same application and hosted by the same server. To avoid maintaining two different records, it's common to create: An A record for example.com pointing to the server IP address.

What is CNAME based SSL validation?

CNAME Based Validation CNAME DNS validation is the proof of establishing your control of the domain name for which you are requesting SSL. You should add an unique CNAME record to your DNS configuration to complete domain validation. Please check below example of GoDaddy DNS.

What is DNS CNAME 1 1?

What is 1.1.1.1? What is a DNS CNAME record? The ‘canonical name’ (CNAME) record is used in lieu of an A record, when a domain or subdomain is an alias of another domain. All CNAME records must point to a domain, never to an IP address.

Should I use a CNAME or an a record for DNS?

Whether your DNS entry uses a CNAME or an A record doesn't matter. What matters is the host name the client is trying to connect to. It must match one of the Subject Alternative Names in the certificate of the server providing that resource (or, failing that, it must match the CN RDN of the cert's Subject DN).

What is a DNS alias a CNAME?

A CNAME is not a redirect per se. It's just a record type in DNS, also known as a DNS alias. The DNS protocol is ultimately about mapping names to IP addresses. The most common record type is a "A" record which is a one-way mapping of Name to IP.


1 Answers

No, it won't. The browser (or other application) will request alias.otherdomain.com and will compare this particular name to contents of presented certificate. The application knows nothing about your DNS aliases.

Update: Donal Fellows reminds me about multidomain (including wildcard) certificates. Some (but not all) CAs offer such certificates so if you buy one of those, then your scheme will work. But otherwise my answer applies.

like image 144
Eugene Mayevski 'Callback Avatar answered Oct 17 '22 23:10

Eugene Mayevski 'Callback