首页 /
教程与测评 /
教程
通配符 SSL 证书配置 教程
子域名太多不想一张张申请?通配符证书一次搞定。
DNS 验证方式
- HTTP 验证无法签通配符,必须用 DNS 验证
- certbot certonly --dns-cloudflare --dns-cloudflare-credentials …
- 支持 Cloudflare/阿里云 DNS/DNSPod 等 API 自动添加 TXT 记录
配置示例
- certbot certonly --dns-aliyun -d '*.example.com' -d example.com
- 证书路径:/etc/letsencrypt/live/example.com/fullchain.pem
注意事项
- API 密钥权限:只需要 DNS 写入权限
- 续期仍走 certbot renew(timer 自动触发)
内容基于公开资料与实操经验整理;涉及产品价格与政策以官方为准。需要代劳?建站咨询服务