我一直在尝试使用 SSL 证书保护我的网站(在 UBUNTU 18.04 VM 中制作),遗憾的是在过程结束时,当我尝试进行空运行时,它抛出了这个:
Attempting to renew cert (website.intelag.net) from /etc/letsencrypt/renewal/website.intelag.net.conf produced an unexpected error: Failed authorization procedure. website.intelag.net (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://website.intelag.net/.well-known/acme-challenge/lzg1XNdb_9GsFmmN1YcixRNTUoKW8tl3YvR735LafTg: "
最佳答案
我遇到了同样的问题。我的操作系统是 Ubuntu 16.04,服务器是 NGNX。 根据您的错误,certbot 尝试通过访问 http://example.com/.well-known/acme-challenge/some-key 来授权您的网站
您必须允许从 Web 访问“.well-known/acme-challenge/”文件夹。如果您使用的是 NGNX,请转到“/etc/nginx/sites-available/example.com.conf”并在“server_name”和“listen”定义之后的“server” block 中添加下一行:
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /var/www/letsencrypt; #create this folder if it does not exists
}
关于ubuntu - certbot Failed authorization procedure 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51320712/