A simple SSL terminator written in NodeJS.
A simple npm module and binary to terminate and forward SSL connections.
This is intended to be used to make local web development easier, not to be run in production. tunnels was inspired by https://github.com/jugyo/tunnels
npm install -g tunnels
tunnels expects a
Here's a set of commands that will give you certs good for 5 years:
mkdir ~/.tunnelscd ~/.tunnelsopenssl genrsa -out ca.key 4096openssl req -new -x509 -days 1826 -key ca.key -out ca.crtopenssl genrsa -out server.key 4096openssl req -new -key server.key -out server.csropenssl x509 -req -days 1826 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt
You'll also want to install your
ca.crt in your browser. On OSX you can add it to the keychain like so:
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/.tunnels/ca.crt