daurnimator / lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
https://daurnimator.github.io/lua-http/
MIT License
807 stars 82 forks source link

ssl error #206

Closed zxz970104 closed 1 year ago

zxz970104 commented 1 year ago

lua examples/simple_request.lua https://www.baidu.com/

REQUEST

HEADERS

:method GET :authority www.baidu.com :path / :scheme https user-agent lua-http/scm

RESPONSE

starttls: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:unable to get local issuer certificate

How can I fix it

zxz970104 commented 1 year ago

and another question : How can I get an image from https and save it

daurnimator commented 1 year ago

starttls: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:unable to get local issuer certificate

This likely means the certificate authority is not installed on your computer e.g. because:

daurnimator commented 1 year ago

Closing due to lack of information+inactivity.