No description, website, or topics provided.
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
certs
snirouter
.gitignore
README.md
app.go

README.md

SNI Router

Go based SNI router. Intercepts the SNI header, then serves the correct certificates and routes to the right backend based on a lookup.

Useful commands

  • SSL Client

    openssl s_client -connect localhost:9999 -servername test.com

    Need to force TLS for the non servername case

    openssl s_client -connect localhost:9998 -tls1

  • SSL Server

    openssl s_server -accept 443 -cert normal_cert.pem -key normal_key.ky -servername xyz.com -cert2 sni_cert.pem -key2 sni_key.ky

  • Generate Keys

    openssl genrsa -des3 -out server.key 2048 openssl req -new -key server.key -out server.csr cp server.key server.key.org openssl rsa -in server.key.org -out server.key openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt