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

1. ACME下载与安装

bash 复制代码
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方式

2. 阿里云访问控制

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

之后执行:

bash 复制代码
export Ali_Key="xxx" && export Ali_Secret="xxx"

3. 获取证书

先进入主目录

bash 复制代码
cd ~/.acme.sh

在执行

bash 复制代码
 ./acme.sh --issue --dns dns_ali -d "example.com" -d "*.example.com"

出现以下代码表示成功

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

bash 复制代码
./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方法

bash 复制代码
./acme.sh --upgrade

L. 参考

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

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

相关推荐
szephyr15 小时前
HTTPS 证书申请与自动续期:acme.sh + Let‘s Encrypt 完整记录
nginx·https·acme.sh·证书续期
我爱吃土豆11 天前
从零给个人项目搭一套 CI/CD
阿里云·部署·cicd
Lsetea1 天前
部署证书后提示“证书名称与输入不匹配”:Safari 报错的三层排查
nginx·https·safari·ssl证书·openssl
yi碗汤园1 天前
OSS对象存储服务
网络·阿里云
其实防守也摸鱼2 天前
DeepSeek Harness 开源贡献手记:从入门到合入主线
服务器·数据库·windows·https·ssl
边境悍匪2 天前
蜗牛学苑 Java 智能体学习 Day44|Vue 前端项目搭建 思维导图复盘
java·开发语言·spring boot·学习·阿里云
Lsetea2 天前
OpenSSL快速生成域名证书:含SAN的自签命令、验证与排错
nginx·https·ssl证书·openssl·自签证书
2501_916008892 天前
SSE 和 gRPC 流式接口如何抓包,调试 SSE 与 gRPC 流式接口
网络协议·计算机网络·网络安全·ios·adb·https·udp
其实防守也摸鱼2 天前
堆叠注入(Stacked Injection)详解
服务器·数据库·windows·https·ssl
阿里云大数据AI技术2 天前
千问 APP × 阿里云:MaxCompute 向量检索重构 RAG 数据收录评估链路,一条SQL将性能提速 11 倍
人工智能·阿里云·maxcompute·rag·千问