NGROK_DOMAIN="ngrok.changpeibing.top"
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 device.key 2048
openssl req -new -key device.key -subj "/CN=$NGROK_DOMAIN" -out device.csr
openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -days 5000
cp rootCA.pem assets/client/tls/ngrokroot.crt
cp device.crt assets/server/tls/snakeoil.crt
cp device.key assets/server/tls/snakeoil.key
make release-server release-client
/usr/local/ngrok/ngrok/bin/ngrokd -tlsKey=device.key -tlsCrt=device.crt -domain="ngrok.changpeibing.top" -httpAddr=":7009" -httpsAddr=":7008"
//当前目录为ngrok目录
nohup bin/ngrokd -domain="ngrok.changpeibing.top" -httpAddr=":8888" -httpsAddr=":8889" -tunnelAddr=":4443"
http://test.ngrok.changpeibing.top:7009/openApi/cashloanTransfer/notify.do
server_addr: "ngrok.changpeibing.top:4443"
trust_host_root_certs: false
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 device.key 2048
openssl req -new -key device.key -subj "/CN=$NGROK_DOMAIN" -out device.csr
openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -days 5000
cp rootCA.pem assets/client/tls/ngrokroot.crt
cp device.crt assets/server/tls/snakeoil.crt
cp device.key assets/server/tls/snakeoil.key
make release-server release-client
/usr/local/ngrok/ngrok/bin/ngrokd -tlsKey=device.key -tlsCrt=device.crt -domain="ngrok.changpeibing.top" -httpAddr=":7009" -httpsAddr=":7008"
//当前目录为ngrok目录
nohup bin/ngrokd -domain="ngrok.changpeibing.top" -httpAddr=":8888" -httpsAddr=":8889" -tunnelAddr=":4443"
http://test.ngrok.changpeibing.top:7009/openApi/cashloanTransfer/notify.do
server_addr: "ngrok.changpeibing.top:4443"
trust_host_root_certs: false