Open DaveRoey opened 8 months ago
When I use http upstream, the plugin works normally. Not working properly when using https. error logs in the log: "unable to get local issuer certificate", It seems that upstream needs to verify the certificate. How can I bypass the certificate?
err log:
2023/11/23 07:05:04 [error] 70#70: 141105 [lua] ext-plugin-post-resp.lua:153: phasefunc(): failed to request: 20: unable to get local issuer certificate, client: 172.19.0.1, server: , request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443" 2023/11/23 07:05:04 [error] 70#70: 141105 [lua] ext-plugin-post-resp.lua:49: close(): close http object failed: closed, client: 172.19.0.1, server: _, request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443" 2023/11/23 07:05:04 [warn] 70#70: *141105 [lua] plugin.lua:1107: runplugin(): ext-plugin-post-resp exits with http status code 502, client: 172.19.0.1, server: , request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443"
docker apisix == 3.6.0
apisix-java-plugin-runner version == 0.4.0
Issue description
When I use http upstream, the plugin works normally. Not working properly when using https. error logs in the log: "unable to get local issuer certificate", It seems that upstream needs to verify the certificate. How can I bypass the certificate?
err log:
2023/11/23 07:05:04 [error] 70#70: 141105 [lua] ext-plugin-post-resp.lua:153: phasefunc(): failed to request: 20: unable to get local issuer certificate, client: 172.19.0.1, server: , request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443" 2023/11/23 07:05:04 [error] 70#70: 141105 [lua] ext-plugin-post-resp.lua:49: close(): close http object failed: closed, client: 172.19.0.1, server: _, request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443" 2023/11/23 07:05:04 [warn] 70#70: *141105 [lua] plugin.lua:1107: runplugin(): ext-plugin-post-resp exits with http status code 502, client: 172.19.0.1, server: , request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443"
Environment
docker apisix == 3.6.0
apisix-java-plugin-runner version == 0.4.0