0

I have 2 different domains with their respective certificates, but both are hosted on one single IP. problem is that when i enable one, then the SSL certificate is enabled for both sites. like SSL for site A is applied to site A and B as well. but if i disable the certificate of site A, then the SSL of site B remains on the site B and works properly. how to resolve this issue.

i have enabled name based virtual hosting and tried many tweaks, noting works so far.

Farhan
  • 4,210
  • 9
  • 47
  • 76

3 Answers3

5

Name based virtual hosting doesn't work for SSL, as the Host header is part of the encrypted payload - Apache doesn't know which certificate to present.

You need a second IP for the second certificate.

ceejayoz
  • 32,469
  • 7
  • 81
  • 105
2

You need a dedicated IP address per SSL certificate. That is a requirement.

Daniel t.
  • 9,061
  • 1
  • 32
  • 36
0

You need a SAN/UCC cert which allows multiple domains on 1 ip address. I've had your configuration before on an Amazon AWS instance and at the time they only allocated 1 ip address per server. I still have 5 sites with different domain names using a single SSL.com Subject Alternative Name cert on that server.

Yogi
  • 171
  • 4