1 Star 0 Fork 1

KKDP/myngrok

forked from silingyuan/myngrok 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pre.sh.bak 708 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
rm -fv assets/client/tls/ngrokroot.crt device.crt assets/server/tls/snakeoil.crt assets/server/tls/snakeoil.key
export NGROK_DOMAIN="tunnel.ptwop.xyz"
echo $NGROK_DOMAIN
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 -fv rootCA.pem assets/client/tls/ngrokroot.crt
cp -fv device.crt assets/server/tls/snakeoil.crt
cp -fv device.key assets/server/tls/snakeoil.key
rm -fv device.* rootCA.*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jjhoc/myngrok.git
git@gitee.com:jjhoc/myngrok.git
jjhoc
myngrok
myngrok
master

搜索帮助