Let’s Encrypt 生成证书错误 (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from 403 Forbidden
在安装 Let’s Encrypt免费SSL证书的时候 遇到这个报错 (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from 详细报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<hr><center>", macff.net (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://macff.net/.well-known/acme-challenge/XyCSq95iEXKKRjcEJOKHAMHiNyNkpvy3wvfmy4O44ns: "<html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>" IMPORTANT NOTES: - The following errors were reported by the server: Domain: www.macff.net Type: unauthorized Detail: Invalid response from http://www.macff.net/.well-known/acme-challenge/T1DcmkO6yb9x3_uBTtp5z8Ww8FfvNcn-2taZoinCX2Q: "<html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>" |
解决方法很简单,在nginx的网站配置文件中加入下面几行就可以了
1 2 3 |
location ~ /.well-known { allow all; } |
我的网站的nginx配置文件是 /usr/local/nginx/conf/vhost/mac…