If we instead delay the selection of an SSLContext to the moment when we have the SNI name indication, we could move the certificate chain and key configuration down to the match elements in the configuration, and initialize a context based on the matching SNI, we could support things like:
Currently, only one
SSLContext
will be selected for any open TLS port on the load balancer, i. e.:If we instead delay the selection of an
SSLContext
to the moment when we have the SNI name indication, we could move the certificate chain and key configuration down to thematch
elements in the configuration, and initialize a context based on the matching SNI, we could support things like:A modified configuration file would look like this (each sni specifies its own cert and key):
We'll need a minor version bump (existing configs will break), updated schemas and test cases.
Also,
A4Sock
will need an optionalsni
attribute for exact matching incoming SNI indications from front end matchers.