mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6
41 字
1 分钟
一键申请并自动续期泛域名证书
2023-02-15

登录root账户#

sudo -i

安装依赖#

apt-get update && apt-get install curl -y && apt-get install cron -y && apt-get install socat -y

安装证书申请脚本#

curl https://get.acme.sh sh

国内使用下面这个:

git clone https://gitee.com/neilpang/acme.sh.git
./acme.sh --install -m 邮箱

设置API并申请证书#

Cloudflare#

export CF_Token="" # cf的api令牌,别用全局api,不安全
export CF_Email="" # cf的邮箱
~/.acme.sh/acme.sh --issue --dns dns_cf -d 域名 -d *.域名 --server letsencrypt # 把"域名"替换成自己的域名

腾讯云#

export DP_Id="" # 引号内填入自己的id
export DP_Key="" # 引号内填入自己的key
~/.acme.sh/acme.sh --issue --dns dns_dp -d 域名 -d *.域名 --server letsencrypt # 把"域名"替换成自己的域名

阿里云#

export Ali_Key="" # 引号内填入自己的id
export Ali_Secret="" # 引号内填入自己的key
~/.acme.sh/acme.sh --issue --dns dns_ali -d 域名 -d *.域名 --server letsencrypt # 把"域名"替换成自己的域名
分享

如果这篇文章对你有帮助,欢迎分享给更多人!

一键申请并自动续期泛域名证书
https://160621.xyz/posts/一键申请并自动续期泛域名证书/
作者
魔法代码
发布于
2023-02-15
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时