tlsmux multiplexes TLS servers. it routes incoming TLS connections to backend services based on the TLS Server Name Indication (SNI), without terminating TLS. Multiple HTTPS/TLS services can share a single IP address and port while preserving end-to-end encryption.
# Start servers
PORT=9001 app1 &
PORT=9002 app2 &
PORT=9003 app3 &
# tlsmux will start listening on :443 and multiplexes the
# connection transparently defined by the mapping.
tlsmux app1.com:9001 app2.com:9002 app3.com:9003
$ go install github.com/bbriano/tlsmux@latest