我是靠谱客的博主 大意凉面,这篇文章主要介绍openresty lua-resty-http https请求错误解决方案,现在分享给大家,希望可以做个参考。

环境

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(135)

评论列表共有 0 条评论

立即
投稿
返回
顶部