今天在进行微信开发获取微信Access_Token时,使用到了php的curl库,

在敲完代码后获取token失败,经过各种排查错误,到了下面这一步

SSL certificate problem: unable to get local issuer certificate

后来通过下面解决,在php代码中输入下面一段

curl_setopt_array(
$ch,
array(
CURLOPT_URL => $url,
CURLOPT_REFERER => $url,
CURLOPT_AUTOREFERER => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_CONNECTTIMEOUT => 1,
CURLOPT_TIMEOUT => 30,
CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36',
)
);

时间有限先大概这样说明下。

转载于:https://www.cnblogs.com/zdhblog/p/7061058.html

SSL certificate problem: unable to get local issuer certificate 的解决方法相关推荐

  1. SSL certificate problem: unable to get local issuer certificate

    fatal: unable to access 'https://github.com/GitHubSi/t...': SSL certificate problem: unable to get l ...

  2. 微信支付curl: (60) SSL certificate problem: unable to get local issuer certificate 解决方法

    微信支付curl: (60) SSL certificate problem: unable to get local issuer certificate 解决方法 参考文章: (1)微信支付cur ...

  3. git SSL certificate problem: unable to get local issuer certificate

    今天用git获取项目的时候提示git SSL certificate problem: unable to get local issuer certificate 这个问题是由于没有配置信任的服务器 ...

  4. git 远程仓库时报错SSL certificate problem: unable to get local issuer certificate(git版本与Let‘s Encrypt的证书导致)

    起因: 之前自己的远程gitea服务一直用的IP+端口号进行使用,基本操作都没有问题.在加上SSL改为(https:\\域名)访问后浏览器页面访问正常,但进行git命令操作时报错"SSL c ...

  5. 【Git】SSL certificate problem: unable to get local issuer certificate错误的解决办法

    问题描述 unable to access 'https://*****.git/': SSL certificate problem: unable to get local issuer cert ...

  6. SSL certificate problem: unable to get local issuer certificate解决办法

    在github上用https克隆代码时报了如下错误 fatal: unable to access 'https://github.com/xiaogao67/gin-cloud-storage.gi ...

  7. 微信支付出现SSL certificate problem: unable to get local issuer certificate 解决方法

    解决方法​ ​一. 出错原因​ 错误提示:SSL certificate problem: unable to get local issuer certificate 是在使用 curl 时出错, ...

  8. cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路

    php5.6以上的版本会出现这种问题 解决办法: 访问https://curl.haxx.se/docs/caextract.html,下载cacert.pem,并在php.ini文件添加 curl. ...

  9. git clone报错:SSL certificate problem: unable to get local issuer certificate

    原因 这是由于当你通过HTTPS访问Git远程仓库的时候,如果服务器上的SSL证书未经过第三方机构认证,git就会报错.因为未知的没有签署过的证书意味着可能存在很大的风险 解决办法 设置关闭SSL验证 ...

最新文章

  1. (四) prometheus + grafana + alertmanager 配置Kafka监控
  2. ListView 与 ImageList
  3. jquery 立体走马灯_jQuery简单的文字跑马灯特效
  4. 编造机中鼠标无法应用标题问题解答
  5. C程序设计语言现代方法08:数组
  6. 一些在线检测网站打开速度工具大分享
  7. JDK源码解析--ArrayList
  8. java ing印版_Java TCP实现高仿版QQ聊天(二)
  9. Java 重写(Override)与重载(Overload)区别
  10. ARC070D No Need
  11. hp服务器开机进系统黑屏,开机黑屏卡住?有办法了!
  12. Unity性能优化之物理引擎的优化(一)
  13. unity下载局域网内图片
  14. linux下C++编程学习
  15. ABP理论学习之实体类
  16. Win10+YOLOv5运行记录
  17. 中国科学院深圳理工大学(筹,简称深理工)明珠校区举行开园仪式并迎来首批学生...
  18. 【Windows】电脑不显示WiFi列表
  19. Android 解压中文乱码(压缩包内中文乱码)
  20. 信管专业的目标职位体系与职业认证体系

热门文章

  1. Spring Cloud(二) Consul 服务治理实现
  2. 外边距塌陷之clearance
  3. 说一下StoreBoard和纯代码编程各有什么好处吧
  4. paramiko在windows上的安装和使用
  5. Android应用程序请求SurfaceFlinger服务创建Surface的过程分析
  6. mysql常用命令操作
  7. Android APK 签名(图)
  8. SQL取出第 m 条到第 n 条记录的方法
  9. Ubuntu 软件包管理详解
  10. 直接设置Activity的背景颜色