Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need both and to have ssl access

I'm on PLESK/ Media temple Centos5. I have exclusive IP for

I purchased two appropriate certificates but only has ssl access.

When going to I get Error: uses an invalid security certificate.The certificate is only valid for the following names: ,
(Error code: ssl_error_bad_cert_domain).

On the mydomain folder in plesk I see both certificates but under 'used' column I see 1 for mydomain and 0 for

Any help is very appreciated. Thanks!

share|improve this question
up vote 2 down vote accepted

You can only have an SSL certificate for a single IP address. You will need to give the subdomain a different IP address and a new SSL certificate tuned to that address.

There is also the option of using multiple domains on your certificate, if your CA supports this. Then you'd just create a certificate for all the domains on that IP and use that.

This might confuse some older clients and be viewed as bad style, though.

share|improve this answer
For Plesk to handle everything in a way that it likes, both sites will need their own IP. – Dave Forgac Jul 14 '09 at 23:56

Plesk allows you to set up subdomains within the domain page. However, it will not allow you to change the hosting options there. They just inherit from

Instead, you should add a new domain on it's own. That way you can assign a different IP for the subdomain, and select the other certificate.

share|improve this answer

You can get a multi-subdomain SSL certificate from This will work for all https://*

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.