A TLS router in Erlang with pluggable routing logic.
This is a TLS router that uses SNI to route connections to the correct endpoint.
The routing logic is kept pluggable this is so this router can be built into a larger system.
This server does not do TLS termination, that's left to the backend server thus providing end-to-end TLS.
This server uses ranch
and
sni_parser to parse the SNI.
You will need rebar
in your PATH
.
$ git clone https://github.com/omarkj/foss.git
$ cd foss/
$ rebar get-deps compile
You need openssl s_client
to be able to run the tests. Erlang SSL
doesn't support SNI so s_client has to be used to do the SSL test
connection. Your OpenSSL installation needs to support TLS 1.0+.
$ rebar ct skip_deps=true
See LICENSE
. It's MIT.