Lua-cURLv3
Lua-cURLv3 copied to clipboard
Cannot use SSL
Lua code:
local cURL = require "cURL.safe"
local a = cURL.easy {
url = 'https://www.google.com/',
--timeout = 60,
writefunction = function (a)
print('hello')
end
}
print(a:perform())
a:close()
Output:
nil [CURL-EASY][PEER_FAILED_VERIFICATION] SSL peer certificate or SSH remote key was not OK (60)
I use the latest Lua-cURL with libcurl version 7.87.0
, download it here. I hope this solves the problem, thanks!