OpenResty lua-resty-auto-ssl: failed to set ocsp stapling for
OpenResty HTTPS Let's Encrypt About 709 words错误日志
lua-resty-auto-ssl
报错。
2021/02/17 08:59:12 [error] 28822#0: 17557 [lua] ssl_certificate.lua:260: set_response_cert(): auto-ssl: failed to set ocsp stapling for www.example.com - continuing anyway - failed to get ocsp response: OCSP responder query failed (http://r3.o.lencr.org): cannot assign requested address, context: ssl_certificate_by_lua
解决办法
nginx.conf
配置中resolver
添加ipv6=off
,关闭IPv6
的DNS
解析,只使用IPv4
。
resolver 8.8.8.8 ipv6=off;
备注
使用ifconfig
命令检查是否支持IPv6
,如果没有inet6
则说明不支持IPv6
。
root@localhost:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:11:83:63
inet addr: Bcast: Mask:
inet6 addr:
参考
https://github.com/auto-ssl/lua-resty-auto-ssl/issues/12#issuecomment-259402817
Views: 3,376 · Posted: 2021-05-08
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...