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

前端 未结 6 2034
长发绾君心
长发绾君心 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 03:57

    In 'C'

    curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0);

    worked for me

提交回复
热议问题