如何解决授权我的域进行 LetsEncrypt 的挑战?

6 ssl https nginx lets-encrypt

我正在尝试授权我的域使用 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!]
Run Code Online (Sandbox Code Playgroud)

授权代码或者文件名每次都不同。我实际上应该在哪里检索它?在本例中为“fdsfs-fdsfdsf.fdsfdsfds”

小智 2

尝试通过 LE 的独立网络服务器授权您的域。

./letsencrypt-auto certonly -a standalone -d my_website.com -d www.my_website.com
Run Code Online (Sandbox Code Playgroud)

您必须记住 - 当您生成新证书时,您必须关闭主网络服务器(Apache、nginx 等)