Certificate installation for the subdomain

Please tell me where to find information about installing a certificate for a subdomain that is not on the same ip (server) on which the domain.

eg
main domain - sample.com - ip 8.8.8.8
subdomain - two.sample.com - ip 50.50.50.50
in dns settings it is recorded as type A

here and there apache.
Do I need to install the certificate and key and both servers?

Yes, you do. Unless it is a wildcard certificate you also need to make sure the certificates match the respective hostnames.

There are 3 hosts in my certificate.

sample.c om
*.sample.com
two.sample.com

Right?

In that case you can use the certificate on both servers. Actually, the third entry is already covered by the wildcard.

Do you mean that 2 entries are enough?

sample.com
*.sample.com

As @sandro wrote, two. is covered.

Cloudflare certificates cover your root (sample.com) as well as the third level, like

foo.sample.com
bar.sample.com
foobar.sample.com

1 Like

Thanks you, [MarkMeyer] [sandro]

This topic was automatically closed after 30 days. New replies are no longer allowed.