Our website is hosted by hosting company HA under domain D on a shared hosting plan. I would like to switch our hosting provider to company HB and I am willing to purchase a new SSL certificate for that purpose. I explicitly do not want to migrate the existing certificate, because I do not have access to the server on HA.

My question is if both HA and HB can simultaneously each have an independent certificate for the same domain D installed?

If so, will the new site work seamlessly under SSL as soon as I switch the domain over to HB or do I have to "unregsiter" the certificate on HA somehow before I can install a new one on HB?


With bog-standard SSL, this is fine. HA provides the old certificate, validly-signed, and clients using the old A record from the DNS and connecting to that server will continue to accept it. HB will provide the new certificate, and clients getting the new A record will connect to it and accept the new certificate. They can peacefully co-exist.

That said, there are some extensions to SSL that may make this more tricky. Browser plugins like Certificate Patrol, which cache SSL certificates, will flag up the change, and if the client is unlucky enough to get the old record after having validated the new one (perhaps a user will move a laptop from work (old DNS) to a cybercafe (new DNS), then back to work), the plugin will grumble.

I have a recollection of another distributed system that allowed multiple users to avoid MITM certification attacks by pooling the many client views of the certificate seen at any given server. Whilst I can't find a reference to it right now, this would most definitely cause problems with your scenario.

But these aren't hugely common yet, so you'll probably be OK.


It's entirely possible to have two separate certificates for the same hostname at the same time. For instance, when you need to renew a certificate, you would want to get the new certificate before the old one expires, and you don't want the old certificate to become invalid before you've installed the new one.

Exactly how you do this will depend on the CA that you bought the certificate from. I've worked with Verisign; they had the option to order an updated ("renewed") certificate within 90 days of expiry time. If your CA does that, I'd advise you to simply renew your certificate provided you are within the timeframe allowed. This has the advantage that the old certificate will stop working when it expires.

Otherwise, you would need to order a new certificate which would likely replace the old one and thus flag the old one as invalid (but since most browsers don't check that, it would still work for most users). But your CA should be able to advise you on how to proceed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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