Lua-cURLv3 icon indicating copy to clipboard operation
Lua-cURLv3 copied to clipboard

Cannot use SSL

Open Redbeanw44602 opened this issue 1 year ago • 1 comments

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!

Redbeanw44602 avatar Jan 23 '23 11:01 Redbeanw44602