Certificate installation for the subdomain

#1

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?

0 Likes

#2

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

0 Likes

#5

There are 3 hosts in my certificate.

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

Right?

0 Likes

#6

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

0 Likes

#8

Do you mean that 2 entries are enough?

sample.com
*.sample.com

0 Likes

#9

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

#10

Thanks you, [MarkMeyer] [sandro]

0 Likes