环境
Windows 10
openresty-1.13.6.2-win32
问题
自签证书
18: self signed certificate
公共证书
20: unable to get local issuer certificate
可能的原因
未添加信任证书(必须是pem文件,注意!!!)
解决方案
例:
证书绝对路径
自签证书
D:\git\idsec-openresty\conf\cert\tomcat.pem
lua_ssl_verify_depth 2;
lua_ssl_trusted_certificate 'cert/tomcat.pem';
公共证书
D:\git\idsec-openresty\conf\cert\ca-lua.pem
lua_ssl_verify_depth 2;
lua_ssl_trusted_certificate 'cert/ca-lua.pem';