Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

multi-site ssl certificate

Tags:

ssl

sni

We have a complete white-label application where clients have pointed domain to our IP address. When request comes in, we check $_SERVER['HTTP_HOST'] and serve up application based on $_SERVER['HTTP_HOST'].

Is it possible to use a multi-site SSL cert for all of our clients?

like image 354
rciiipo Avatar asked Dec 15 '25 10:12

rciiipo


1 Answers

This can be done in one of three ways:

  1. SNI with a unique certificate per domain (as noted in the techrepublic link)
  2. Wildcard certificate
  3. Single certificate, with a lot of subjectAltName entries

The downside of (1) is that it only works with certain browsers.

The downside of (2) is that you probably can't get a wildcard certificate from a trusted CA (and even if you do, *.com doesn't match www.foo.com).

The downside of (3) is that, every time your company gets a new client, you need a new certificate (with the new subjectAltName).

Personally, I'd go with (1).

like image 125
Jumbogram Avatar answered Dec 16 '25 23:12

Jumbogram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!