Skip to content

Instantly share code, notes, and snippets.

@blue-bird1
Last active October 10, 2018 00:15
Show Gist options
  • Select an option

  • Save blue-bird1/a38e44140aee7575bd055be6e6b91e02 to your computer and use it in GitHub Desktop.

Select an option

Save blue-bird1/a38e44140aee7575bd055be6e6b91e02 to your computer and use it in GitHub Desktop.
ngork install #debian
cd ~
git clone https://github.com/inconshreveable/ngrok.git
export GOPATH=~/ngrok/
cd ngrok
$NGROK_DOMAIN = “fake.com”
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -subj "/CN=$NGROK_DOMAIN" -days 5000 -out rootCA.pem
openssl genrsa -out server.key 2048
openssl req -new -key server.key -subj "/CN=$NGROK_DOMAIN" -out server.csr
openssl x509 -req -in server.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out server.crt -days 5000
GOOS=linux GOARCH=amd64 make release-server release-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment