使用了https://github.com/pintsized/lua-resty-http.git库
在正常的请求处理过程中发起https请求没有问题
在init worker阶段启动ngx.timer发起一个https请求报错: lua ssl certificate verify error: (20: unable to get local issuer certificate), context: ngx.timer
配置了
server {
lua_ssl_verify_depth 3;
lua_ssl_trusted_certificate /etc/pki/tls/cert.pem;
}