惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
V
V2EX
Jina AI
Jina AI
S
Schneier on Security
Cyberwarzone
Cyberwarzone
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
PCI Perspectives
PCI Perspectives
美团技术团队
小众软件
小众软件
L
LangChain Blog
N
Netflix TechBlog - Medium
大猫的无限游戏
大猫的无限游戏
T
Threatpost
T
Tor Project blog
K
Kaspersky official blog
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
H
Heimdal Security Blog
N
News and Events Feed by Topic
T
Threat Research - Cisco Blogs
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
N
News | PayPal Newsroom
I
Intezer
博客园 - 聂微东
U
Unit 42
Cisco Talos Blog
Cisco Talos Blog
量子位
T
The Exploit Database - CXSecurity.com
Last Week in AI
Last Week in AI
博客园_首页
月光博客
月光博客
Webroot Blog
Webroot Blog
I
InfoQ
The Cloudflare Blog
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
Hacker News: Ask HN
Hacker News: Ask HN
IT之家
IT之家
Google DeepMind News
Google DeepMind News
C
Cisco Blogs

博客园 - 成都兰斯

南京电信IPTV折腾记 群晖3622使用nvme硬盘 curl 绑定域名访问 nginx日志分析工具goaccesss Java和C#排序差异 Win下Rsync安装 zte交换机 操作 SQL Server 数据的索引引发的血案 Dell服务器通过IPMI调整风扇转速 centos6安装goaccess ipmi调整超微主板 N1 救砖 超微主板不识别M2-解决方案 Centos7安装zookpeer Centos7 安装Java8 通过CMD命令行打开防火墙端口 Windows win10 L2TP拨号 Esxi直通板载Sata Esxi 增加网卡驱动 生成ISO
acme在群晖下自动更新证书
成都兰斯 · 2025-02-11 · via 博客园 - 成都兰斯

使用acme自动更新证书

涉及使用以下功能

1、阿里云使用ram来自定义账号,阿里云新增一个accesskey来操作域名,对子账号赋权,需要有2个权限,AliyunDNSFullAccess、AliyunDomainFullAccess。

  去acme.sh网站打包下载,然后将zip包解压,复制到/root/.acme.sh目录。

2、输入域名商参数

#阿里云 
export Ali_Key="填写AccessKey ID" 
export Ali_Secret="填写Access Key Secret"

#目前 acme.sh 支持 5 个正式环境 CA,分别是 Let's EncryptBuypassZeroSSLSSL.com 和 Google Public CA,默认使用 ZeroSSL,如果需要更换可以使用如下命令:一般使用letsencrypt来做 # 申请泛域名证书
# 使用dnspod解析的域名
/root/.acme.sh/acme.sh --issue --dns dns_dp -d example.com -d *.example.com --server letsencrypt
#使用阿里解析的域名
/root/.acme.sh/acme.sh --issue --dns dns_ali -d example.com -d *.example.com --server letsencrypt

3、准备群晖参数

export SYNO_Username='acme'
export SYNO_Password='账号密码'
export SYNO_DEVICE_NAME="CertRenewal"

4、申请证书

# 部署证书
/root/.acme.sh/acme.sh --deploy --home /root/.acme.sh --deploy-hook synology_dsm  -d "example.com"

5、添加定时任务

每周运行一次就可以。

# 证书检查更新
/root/.acme.sh/acme.sh --cron --home /root/.acme.sh

# 部署证书
/root/.acme.sh/acme.sh --deploy --home /root/.acme.sh --deploy-hook synology_dsm -d "example.com"