Does each subdomain need its own SSL certificate?

Better Stack Team
Updated on October 5, 2023

This depends purely on what type of certificate you have. You can have a standard single domain certificate. Aside from that, you can also get two following types of certificates.

Wild card certificate

Wild card certificate can be issued for domains that look like this * This will ensure SSL encryption on all subdomains that end with For example and so on.

Multi-domain certificate

The second option is to use a multi-domain certificate that can be issued for a predefined list of domain names. This will ensure SSL encryption an all domains in the list using the Subject Alternative Name field of the certificate. For example, you can get a single certificate for and

If none of those options would work for you, you are left with the option of a separate certificate for each domain.

Make your mark

Join the writer's program

Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.

Write for us
Writer of the month
Marin Bezhanov
Marin is a software engineer and architect with a broad range of experience working...
Build on top of Better Stack

Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.

or submit a pull request and help us build better products for everyone.

See the full list of amazing projects on github