ubuntu - certbot Failed authorization procedure 错误

标签 ubuntu ssl virtual-machine certbot

我一直在尝试使用 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/

相关文章:

azure - azure TFS上安装的VM如何远程访问

android - 蓝牙不开启VM virtual Box

linux - 上传/Arduino 出现错误 : permission denied on Ubuntu 16. 04

ubuntu - Docker 私有(private)注册表

java - 解决 javax.net.ssl.SSLHandshakeException : sun. security.validator.ValidatorException : PKIX path building failed Error?

apache - 使用 SSL 证书验证用户

java - .bashrc 在设置 $JAVA_HOME PATH 后出错

Python 3 不适用于 Sublime Text 2

SSL 证书 - 根证书中私钥的用途是什么?

linux-kernel - 虚拟 : How it increase performance