Ng Zhong Qin
Ng Zhong Qin

Reputation: 1261

How to set up 2 SSL cert on a single webpage

I am running an Apache web server and I have supposed to put 2 SSL cert on a single website. Is this possible? how can I do this? I read the apache user manual and it says I only can have 1 SSL cert for a single IP and port.

Upvotes: 2

Views: 705

Answers (2)

Jason Dean
Jason Dean

Reputation: 9615

As Yahia points out. A wildcard cert is an option. They are also expensive.

You can certainly have multiple named SSL certs on your server for images.domain.com and static.domain.com or whatever named sites you want and that is not a security issue. In fact, that is considered more secure than a wildcard cert.

It is true that you can only have one named cert per IP. Because SSL certs are bound to the IP in the web server config. So you would need to have multiple IP addresses on the server hosting the sites. If the dynamic and static content are already on different machines, then you're set there, but it sounds like they are on the same machine.

That doesn't mean that the ports need to be different between the site. You can have both 123.45.67.89 and 123.45.67.88 listening on the same port (443 in this case) on the same machine.

Here is a post I found that looks like it describes the config pretty well.

http://wiki.zimbra.com/wiki/Multiple_SSL_Virtual_Hosts

Upvotes: 0

Yahia
Yahia

Reputation: 70379

After the comments from the OP:

Setup two subdomains - one for static/to be CDN'd content and one for dynamic/not to be CDN'd content.

Get + setup a "wildcard cert" for your domain i.e. a cert for "*.yourdomain.com"... these are a bit more expensive but exactly for your situation...

Upvotes: 2

Related Questions