Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

    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 -servername -cert2 sni_cert.pem -key2

  • Generate Keys

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

Something went wrong with that request. Please try again.