Can I use same wildcard SSL cert for multiple domains?


(Zhicheng Wang) #1

I bought a wildcard SSL cert for my domain: *.xxx.com. I need to step multiple sites for different purpose. For example a.xxx.com for site A, b.xxx.com for site B. My configuration file is as follows:

a.xxx.com {
   proxy / http://127.0.0.1:3000
   tls wildcard.crt wildcard.key
}
b.xxx.com {
   proxy / http://127.0.0.1:3001
   tls wildcard.crt wildcard.key
}

But when I reload caddy, site A seems to be fine, but for site B, it says: There is already a certificate loaded for .xxx.com, so certificate for [.xxx.com] will not service that name

So How can I use the same cert for multi sites with different content? Thanks.


(Matthew Fay) #2

It’s just a startup notice to say that you’re loading a certificate that covers the same site multiple times, and it’s not loading the new certificate over the one it’s already loaded in.

In this case, you’re loading the same certificate in multiple sites, so there’s no problem at all. Caddy’s just letting you know how it’s handling the situation.

It shouldn’t impact serving your site properly.


(system) #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.