欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 艺术 > [DDNS][SSL][HTTPS]阿里云ACME Ubuntu22.04Server 安装教程

[DDNS][SSL][HTTPS]阿里云ACME Ubuntu22.04Server 安装教程

2025/11/27 5:35:04 来源:https://blog.csdn.net/qq_38844263/article/details/143686591  浏览:    关键词:[DDNS][SSL][HTTPS]阿里云ACME Ubuntu22.04Server 安装教程

1. ACME下载与安装

git clone https://gitee.com/neilpang/acme.sh.git
cd acme.sh
./acme.sh --install -m my@example.com

安装成功之后执行crontab -l可以看到其定期任务

如果你要是用standalone mode请提前安装socat。这里介绍的是DNS方式

image-20241111145350767

2. 阿里云访问控制

进入阿里云RAM访问控制获取Access Key和Access Sevret

之后执行:

export Ali_Key="xxx" && export Ali_Secret="xxx"

3. 获取证书

先进入主目录

cd ~/.acme.sh

在执行

 ./acme.sh --issue --dns dns_ali -d "example.com" -d "*.example.com"

出现以下代码表示成功

image-20241111150036973

之后拷贝到我们需要的目录里面去(不能使用~操作符)

./acme.sh --install-cert -d "example.com" -d "*.example.com" \
--key-file "/home/vernon/cert_files/com.example.key" \
--cert-file "/home/vernon/cert_files/com.example.crt"  \
--ca-file "/home/vernon/cert_files/ca.crt" \
--fullchain-file "/home/vernon/cert_files/fullchain.cer" #\
# --reloadcmd "service nginx force-reload" # 这个我这里不需要重载服务

4. 更新证书

证书会自动更新,这里是手动的方式

后续更新acme.sh方法

./acme.sh --upgrade

L. 参考

https://blog.csdn.net/sedbz/article/details/123566874

https://blog.csdn.net/qq_22903531/article/details/129078126

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词