环境
Windows 10
openresty-1.13.6.2-win32
问题
自签证书
18: self signed certificate
公共证书
20: unable to get local issuer certificate
可能的原因
未添加信任证书(必须是pem文件,注意!!!)
解决方案
例:
证书绝对路径
自签证书
D:gitidsec-openrestyconfcerttomcat.pem
lua_ssl_verify_depth 2;
lua_ssl_trusted_certificate 'cert/tomcat.pem';
公共证书
D:gitidsec-openrestyconfcertca-lua.pem
lua_ssl_verify_depth 2;
lua_ssl_trusted_certificate 'cert/ca-lua.pem';
最后
以上就是大意凉面最近收集整理的关于openresty lua-resty-http https请求错误解决方案的全部内容,更多相关openresty内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复