Lua-cURL / Lua-cURLv3

Lua binding to libcurl
MIT License
275 stars 63 forks source link

Cannot use SSL #187

Open Redbeanw44602 opened 1 year ago

Redbeanw44602 commented 1 year ago

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!

aquillano commented 4 months ago

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.