I'm trying to send a simple GET request via a command line script, but receive the following error message:
2017/10/22 17:42:55 [error] 3986#0: *2 [lua] osintel.lua:6: failed to request: 20: unable to get local issuer certificate, context: ngx.timer
The script is below:
local http = require "resty.http"
local httpc = http.new()
local res, err = httpc:request_uri("https://www.google.com/")
if not res then
ngx.log(ngx.ERR,"failed to request: ", err)
return
end
ngx.say(res.body)
Is there a resty cli command I can use to stop trying to verify the certificate or do I need to configure a fix in nginx.conf?