ssl – 如何解决为letsencrypt授权我的域名的挑战?

我正在尝试为letsencrypt授权我的域名.以前,几个月前在不同的服务器上,我没有,现在我出于某种原因.

./letsencrypt-auto certonly -a webroot --webroot-path=/home/deployer/pfios -d my_website.com -d www.my_website.com
Failed authorization procedure. my_website.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: The key authorization file from the server did not match this challenge [fdsfs-fdsfdsf.fdsfdsfds333] != [gangnam style!]


Domain: www.my_website.com
   Type:   unauthorized
   Detail: The key authorization file from the server did not match
   this challenge
   [fdsfs-fdsfdsf.fdsfdsfds333]
   != [gangnam style!]

授权代码或文件名每次都不同.我应该在哪里找到它?在这种情况下,它是“fdsfs-fdsfdsf.fdsfdsfds”

最佳答案 尝试通过LE的独立网络服务器授权您的域名.

./letsencrypt-auto certonly -a standalone -d my_website.com -d www.my_website.com

您必须记住 – 当您生成新证书时,您必须离开主Web服务器(Apache,nginx等)

点赞