Getting error in Curl - Peer certificate cannot be authenticated with known CA certificates

前端 未结 6 1984
长发绾君心
长发绾君心 2021-01-02 03:33

I am getting the below error while making ssl connection with self signed certificate. \"Peer certificate cannot be authenticated with known CA certificates\"

It is

6条回答
  •  囚心锁ツ
    2021-01-02 04:01

    libcurl performs peer SSL certificate verification by default. This is done by using CA cert bundle that the SSL library can use to make sure the peer's server certificate is valid.

    If you communicate with HTTPS or FTPS servers using certificates that are signed by CAs present in the bundle, you can be sure that the remote server really is the one it claims to be.

    Until 7.18.0, curl bundled a severely outdated ca bundle file that was installed by default. These days, the curl archives include no ca certs at all. You need to get them elsewhere. See below for example.

    For more to know about Peer SSL Certificate Verification visit http://curl.haxx.se/docs/sslcerts.html

提交回复
热议问题