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

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
C
Cisco Blogs
The Hacker News
The Hacker News
T
Tor Project blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Register - Security
The Register - Security
云风的 BLOG
云风的 BLOG
Simon Willison's Weblog
Simon Willison's Weblog
P
Palo Alto Networks Blog
Vercel News
Vercel News
C
CERT Recently Published Vulnerability Notes
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
I
Intezer
aimingoo的专栏
aimingoo的专栏
U
Unit 42
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
P
Proofpoint News Feed
P
Proofpoint News Feed
B
Blog
T
Threat Research - Cisco Blogs
博客园 - 叶小钗
Recorded Future
Recorded Future
Last Week in AI
Last Week in AI
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Engineering at Meta
Engineering at Meta
G
Google Developers Blog
PCI Perspectives
PCI Perspectives
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Schneier on Security
Schneier on Security
N
News | PayPal Newsroom
C
Cybersecurity and Infrastructure Security Agency CISA
H
Help Net Security
博客园 - 聂微东
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
GRAHAM CLULEY

博客园 - 成都兰斯

南京电信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"