"); //-->

ssl 认证的过程,终端提交对应证书给服务器,服务器会去验证,验证完以后就是verify ok.
给个不验证的例子:
 通过修改:curl 中
通过修改:curl 中
    res = curl_easy_setopt(curl_ptr, CURLOPT_SSL_VERIFYPEER, 0);
    if (CURLE_OK != res)
    {
        DebugOutPutErr("[Error is %d] %s, curl_easy_setopt CURLOPT_SSL_VERIFYPEER failed [%s] [%d]\n",
                       res, __FUNCTION__, filename(__FILE__), __LINE__);
        goto end;
    }
    res = curl_easy_setopt(curl_ptr, CURLOPT_SSL_VERIFYHOST, 0);
    if (CURLE_OK != res)
    {
        DebugOutPutErr("[Error is %d] %s, curl_easy_setopt CURLOPT_SSL_VERIFYHOST failed [%s] [%d]\n",
                       res, __FUNCTION__, filename(__FILE__), __LINE__);
        goto end;
    }/etc/ssl/certs/ca-certificates.crt; 是系统默认的ssl 证书路径。
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。