[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

相关推荐
郏国上21 小时前
图片上传阿里云
阿里云·node.js·云计算
TG_yunshuguoji21 小时前
阿里云国际代理商:如何实现配置跨区域复制?
安全·阿里云·云计算
00后程序员张1 天前
iOS混淆与IPA文件加固全流程实战 防止苹果应用被反编译的工程级方案
android·ios·小程序·https·uni-app·iphone·webview
开发者导航1 天前
【开发者导航】支持多存储方式的开源文件列表程序:OpenList
人工智能·学习·阿里云·信息可视化
2501_915106321 天前
iOS 应用加固与苹果软件混淆指南,如何防止 IPA 被反编译与二次打包?
android·ios·小程序·https·uni-app·iphone·webview
熙客1 天前
阿里云监控:SLS的使用
运维·阿里云·云原生·云计算
聚名网1 天前
阿里云和聚名网的域名注册安全性如何?
阿里云·云计算
TG_yunshuguoji1 天前
阿里云渠道商:哪些方法能给服务器加速?
服务器·阿里云·云计算
企鹅侠客1 天前
阿里云ACK多个Service绑定单个SLB实践
阿里云·云计算·service·ack
D11_1 天前
在阿里云CentOS服务器上使用Certbot为Nginx配置SSL证书
服务器·阿里云·centos