Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发送红包,证书错误 #144

Closed
iluozhiqiang opened this issue Nov 3, 2015 · 3 comments
Closed

发送红包,证书错误 #144

iluozhiqiang opened this issue Nov 3, 2015 · 3 comments

Comments

@iluozhiqiang
Copy link

SSL certificate problem: unable to get local issuer certificate
发送红包时一直出错。
后来校验官方给出例子

    //这里设置代理,如果有的话
    //curl_setopt($ch,CURLOPT_PROXY, '10.206.30.98');
    //curl_setopt($ch,CURLOPT_PROXYPORT, 8080);
    curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
    curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);

而该包里面是

 //设置证书
            //使用证书:cert 与 key 分别属于两个.pem文件
            curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, true);
            curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, 2);//严格校验

导致一直报如上错误。经过修改两个值为false后,不再报错

@tianyong90
Copy link
Contributor

如果自己没装服务器证书,这个确实会报错,自己改下就行。至于装了证书后是什么情况也没试过。

@iluozhiqiang
Copy link
Author

我本地改了后,以后升级或直接下载的时候,不就又需要改包了?

@overtrue overtrue closed this as completed Jan 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants