Skip to content
This repository

HTTPS clone URL

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

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

Something went wrong with that request. Please try again.