腾讯云服务器,ubuntu 24操作系统,域名在阿里云解析。更新Let's Encrypt 证书,anygoo.net和*.anygoo.net共用一个证书。
1. 安装阿里云 DNS 插件
Ubuntu 24 官方仓库没有打包,用 Python venv 最干净:
# 系统依赖
sudo apt update
sudo apt install python3-venv libaugeas0
# 创建虚拟环境
sudo python3 -m venv /opt/certbot
sudo /opt/certbot/bin/pip install --upgrade pip
# 安装 certbot + 阿里云插件
sudo /opt/certbot/bin/pip install \
certbot \
certbot-dns-aliyun
建立全局软链,方便直接敲 certbot:
sudo ln -sf /opt/certbot/bin/certbot /usr/bin/certbot
2. 准备阿里云 API 密钥
-
登录 阿里云 RAM 控制台 → 用户 → 你的用户 → 创建 AccessKey
记录 Access

最低0.47元/天 解锁文章
6612

被折叠的 条评论
为什么被折叠?



