Skip to content

Instantly share code, notes, and snippets.

@yuktse
Created March 6, 2014 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuktse/9386250 to your computer and use it in GitHub Desktop.
Save yuktse/9386250 to your computer and use it in GitHub Desktop.
windows 用 curl 连 ssl/https 失败的原因

通常是由于windows系统不能验证对方网站的CA(数字证书)

可以加这条语句解决:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不要验证SSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment