wetty安装+使用acme.sh配置ssl

比赛,需要用到web调用控制台。
wetty实现了web+tty这种功能,而且比较轻便。
但是这种给客户用,是不是有点不安全。


  • 环境:centos
  • 配置:node >=6.9,make,python,build-essential

安装build-essential

yum install make automake gcc gcc-c++ kernel-devel

安装yarn

curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo

#如果没有node.js
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -

#我没有配置环境变量
sudo yum install yarn

安装wetty

yarn global add wetty

安装acme.sh&使用其生成证书
https://github.com/acmesh-official/acme.sh

curl  https://get.acme.sh | sh

因为只要用一周,不需要配置Nginx那些东西,直接采用DNS解析判断的方式去申请。

acme.sh  --issue  --dns   -d mydomain.com
#去做txt解析
acme.sh  --renew -d mydomain.com

最后找到证书的位置指定并启动

./wetty --sslkey ./web_test/xx.key --sslcert ./web_test/xx.cer -p 857857857

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值