Sharing two SSL wildcard certificates in memory in nginx
Posted
by
hvtilborg
on Server Fault
See other posts from Server Fault
or by hvtilborg
Published on 2012-08-02T07:09:55Z
Indexed on
2013/10/31
3:58 UTC
Read the original article
Hit count: 467
I have an nginx server running with two IP addresses, say 1.2.3.4
and 4.3.2.1
. Besides there are two wildcard SSL certificates for *.example.net
(i.e. wc1
, pointing to 1.2.3.4
) and *.sub.example.net
(i.e. wc2
, pointing to 4.3.2.1
).
The nginx docs mention that you can share a wildcard certificate between server
instances like this:
ssl_certificate wc1.crt;
ssl_certificate_key wc1.key;
server {
listen 1.2.3.4:443;
server_name www.example.net;
ssl on;
...
}
server {
listen 1.2.3.4:443;
server_name test.example.net;
ssl on;
...
}
However, I was wondering whether this same construct is possible to use with the second wildcard certificate too. Both domains have around 500 subdomains.
Do they not get mixed up, since the ssl_certificate
construct is now global?
© Server Fault or respective owner