Last active
October 10, 2018 00:15
-
-
Save blue-bird1/a38e44140aee7575bd055be6e6b91e02 to your computer and use it in GitHub Desktop.
ngork install #debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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