SSL证书申请时域名认证失败?常见错误(如CAA记录限制)排查?
1. 常见SSL域名认证失败原因
错误类型 | 表现 | 排查方法 |
---|---|---|
DNS解析问题 | 证书机构无法验证域名解析 | dig +short yourdomain.com |
CAA记录限制 | 证书机构未在CAA记录中授权 | dig +short CAA yourdomain.com |
WHOIS信息不符 | 域名注册邮箱与申请人不匹配 | 在域名注册商处核对WHOIS信息 |
HTTP验证失败 | 无法访问/.well-known/pki-validation/ |
检查Nginx/Apache是否拦截该路径 |
2. CAA记录问题专项处理
bash
# 检查现有CAA记录 dig +short CAA yourdomain.com # 临时允许所有CA(测试用) echo "yourdomain.com. IN CAA 0 issue \";\"" >> /etc/bind/db.yourdomain.com
0 issue "letsencrypt.org"
)
3. 证书申请调试技巧
bash
# Let's Encrypt调试模式 certbot certonly --dry-run -d yourdomain.com # 强制重新验证 certbot delete --cert-name yourdomain.com && certbot certonly -d yourdom
更新时间:2025-06-21 23:36:32
上一篇:网站不能登录的原因
下一篇:宝塔提示信息 & 安装位置相关