letsencrypt 出问题 [已解决]
军哥,我本来在VPS A 先添加abc.com 然后加入了 123.com 两个域名都是独立网站都使用Letsencrypt 也可以通过SSL访问 (注册letsencrypt账号用了同一个email地址)然后前天因为客户买了新的VPS B然后让我把abc.com移动到VPS B。 我在VPS B安装好LNMP1.4后添加 abc.com域名和SSL后出问题了。
VPS B上我运行letsencrypt 加入 abc.com 后 显示
Domain: abc.com
Type: unauthorized
Detail: Invalid response from
http://abc.com/.well-known/acme-challenge/vmGPA_8Yb4Q:
"
<!DOCTYPE html>
<!--><html class="ie ie6" lang="en" prefix="og:
http://ogp.me/ns#"> <!-->
<!--"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
的错误信息。
然后我不死心就在VPS B运行了一下你的 Letsencrypt自动续期 结果返回信息
Remove Let's encrypt crontab renew rule...
Update Let's encrypt crontab renew rule...
OK.
Try to run certbot renew script...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/123.com.conf
-------------------------------------------------------------------------------
Cert not yet due for renewal
-------------------------------------------------------------------------------
The following certs are not due for renewal yet:
/etc/letsencrypt/live/123.com/fullchain.pem (skipped)
No renewals were attempted.
No hooks were run.
竟然显示是另外一个域名的key。 现在通过 http://abc.com能访问到 VPS B但我访问https://abc.com 就会自動跳轉到 123.com VPS A。我在abc.com的DNS设置@和www都指向了VPS B了。求解
[ 本帖最后由 yangw198x 于 2017-9-8 12:22 编辑 ]
回复 1# 的帖子
如果dns没生效的话访问不到验证文件就没法生成证书,建议发/var/log/letsencrypt/letsencrypt.log看一下你运行的脚本只是修复原来有问题用的,不是直接用来续期的
123.com是你的域名吗,建议发配置文件看,但从描述没法确定 最后联系了域名商是域名问题已经解决~谢谢军哥
[ 本帖最后由 yangw198x 于 2017-9-8 12:23 编辑 ]
回复 3# 的帖子
和邮箱没关系,也不可能串号按日志看FailedChallenges: Failed authorization procedure. www.abc.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.abc.com/.well-known/acme-challenge/KrouvKFv6KesTnonwnzaRxG_7vnpLq-kqVcsZeie5gc: "<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>"
文件不存在,可能你填写的网站目录不对
发一个配置文件没法确定,要两个域名的和nginx.conf的
页:
[1]