【已解决】

linux+apache下https站同一站点a域名换成b域名,去申请ssl功能报错:

熊猫

linux+apache下https站同一站点a域名换成b域名,开始忘记直接修改域名了,是新增的域名。新增域名发现新域名自动301到老域名,就把老域名删除了。结果悲催了。连老域名的ssl也失效了。去申请ssl功能报错:

centos_ssl Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator webroot, Installer None Obtaining a new certificate Performing the following challenges: http-01 challenge for www.guoget**** Using the webroot path /www/admin/fruitbk****_80/wwwroot for all unmatched domains. Waiting for verification... Challenge failed for domain www.guoget**** http-01 challenge for www.guoget**** Cleaning up challenges Some challenges have failed. /usr/local/phpstudy/system/module/certbot-auto has insecure permissions! To learn how to fix them, visit https://community.letsencrypt.org/t/certbot-auto-deployment-best-practices/91979/ IMPORTANT NOTES: - The following errors were reported by the server: Domain: www.guoget**** Type: unauthorized Detail: Invalid response from http://www.guoget****/.well-known/acme-challenge/qjk36aXk7YA8El8sn2Da7K3o02rD5e_NwLB36zFlFcA [39.108.49.45]: 404 To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address.

请大神指点。

问题比较着急?请联系QQ:760483
  • Peter·Python
  • Peter·Python    2020-10-26 13:38:584楼

    新域名的dns记录写了吗

    +添加回复

  • 回复

    请问下你说的是新域名是否解析到服务器ip吗?已经解析好了的。****都能打开的了。

    熊猫  作者 · 2020-10-26 14:58:57
    回复

    知道你的问题所在了,你先删掉站点,重新创建空白站点,申请完证书再放内容

    Peter·Python · 2020-10-26 15:13:11
    回复
  • 肥西上派_蔡徐坤
  • 肥西上派_蔡徐坤    2020-10-26 13:14:253楼

    删掉/usr/local/phpstudy/certs下面的与该域名相关的证书,重新申请

    +添加回复

  • 回复

    你好。我删除了这个目录下的所有域名的文件包括把certs整个文件改名也试过了。还是报同样的错误。请问还有别的方案吗?

    熊猫  作者 · 2020-10-26 14:58:17
    回复
  • phpsutdy-爱好者
  • phpsutdy-爱好者    2020-10-26 10:47:101楼

    没太明白你的意思 

    +添加回复

  • 回复

    我改变了方法,不换域名了。直接新开个站,把代码移过去。可新开的站去开启ssl,也照样报错。是一样的错误。最近升级了面板到v1.13了,难道是升级的问题?

    熊猫  作者 · 2020-10-26 11:12:58
    回复