Hi Daniel,

On Tue, Apr 18, 2017 at 11:25:43AM +0200, Daniel Schneller wrote:
> Hi!
> 
> Not being very familiar with the code, so I thought I'd ask before something
> changes unexpectedly :)
> I asked about certificate ordering a while ago, too, and I seem to remember
> (and we currently rely on this) that exact domain matches are "weighted
> higher" than wildcard matches on purpose, so that if I just dump the
> certificates in a directory, it will pick a more specific one over a wildcard
> that is also there as a "catchall".
> 
> Not saying one or the other is right or wrong, but if this should be merged,
> it must be made very clear that people might have to change their setups.

FQDN matches always have precedence over wildcards (fortunately). Sander,
I'm a bit surprized by your motivation for this change. You always want
foo.example.com to have precedence over *.example.com and this is not a
matter of directory. By changing this you'd silently break some certs by
presenting the wrong one (the wildcard one) instead of the fully qualified
name. If you have any reason for wanting to do that anyway, I think this
is the wrong approach and you should instead refuse to load domain certs
when they conflict with a wildcard, or at least emit a warning indicating
that there's overlapping. But that still seems very strange to me :-/

Willy

Reply via email to