Max Certificates + "www" Domain?

When using the max_certificates directive, should I include both the non-www and www domain when determining my value, or will Caddy combine the non-www and www domains into one certificate? Basically, if I have a server block like:, {


Should max_certificates be 1 or 2?

Good question – each hostname is a separate certificate (it’s much simpler that way). So if you intend to support www., you’ll want to double your max_certs count.

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