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!
I too am seeing this issue. @moteus Is this a known issue? I'm happy to help debug if required and even submit a pull request if we can get to the bottom of this.
Lua code:
Output:
I use the latest Lua-cURL with libcurl version
7.87.0
, download it here. I hope this solves the problem, thanks!