Pedro
Pedro

Reputation: 2927

Can I have 2 subdomains with same ssl certificate

Simple question, can I have in the same machine 2 web applications, running in different subdomains with the same ssl certificate?

ex:

m.example.com
z.example.com

Same Machine, same IP!

Upvotes: 3

Views: 6405

Answers (3)

Bruno
Bruno

Reputation: 122719

You can use either:

  • a wildcard certificate (e.g. *.mydomain.yy), although their usage is discouraged,
  • a certificate with multiple Subject Alternative Names (DNS: m.domain.yy and z.domain.yy).

For reference, this is documented in RFC 2818 (section 3.1) and RFC 6125.

How the web server is then configured to dispatch the request to the appropriate web application depends on which web server you are using (as @Brian said in a comment to your question).

Upvotes: 8

Joachim Isaksson
Joachim Isaksson

Reputation: 180987

Yes, using a wildcard certificate

Upvotes: 1

Spidfire
Spidfire

Reputation: 5533

with a wildcard ssl certificate http://www.comodo.com/e-commerce/ssl-certificates/wildcard-ssl.php

Upvotes: 1

Related Questions