I have a domain for a customer, say my-nice-restaurant.example
hosted in a hosting company with cPanel. This cPanel takes all the time one domain like the "primary domain" of my account, say my-tech-company.example
.
The hosting company for some reason makes the TLS certificate like this:
Subject:
- my-nice-restaurant.xyz.my-tech-company.example
Common names:
- my-nice-restaurant.example.my-tech-company.example
Alternative names:
- my-nice-restaurant.example
- my-nice-restaurant.example.my-tech-company.example
- www.my-nice-restaurant.example
- www.my-nice-restaurant.example.my-tech-company.example
I don't want my DNS of my-tech-company.example
to have an A record with host my-nice-restaurant.example.my-tech-company.example
pointing to the same IP because nobody needs to know that my-nice-restaurant.example
and my-tech-company.example
are related except for that they point to the same IP. No other connection other than that should be visible to the general public.
Question:
Does the TLS work if the ONLY DNS entry is my-nice-restaurant.xyz
and the DNS entry corresponding to the Subject in the cert my-nice-restaurant.xyz.my-tech-company.example
is deleted?