准备条件
- 一台可以连接的服务器,本文服务器系统使用
linux
命令,以阿里云的 ECS 为例 - 可以使用其它的,必须是可执行
linux
命令的服务器,例如CentOS
、Ubuntu
等
安装 acme.sh
- 不会
acme.sh
没关系,甚至你不需要知道他是用来干嘛的,下面使用的都是很简单的命令 - 连接服务器,这里以
xshell
为例 [email protected]
: 替换成你自己的邮箱地址
# 安装命令
curl https://get.acme.sh | sh -s email=你的邮箱
# 例如
curl https://get.acme.sh | sh -s email=[email protected]
- 安装完成之后查看是否安装成功
acme.sh -v
申请证书
- 域名和域名访问的目录最好是能访问的,因为