SSL certificate problem: unable to get local issuer certificate 的解决方法
今天在进行微信开发获取微信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 的解决方法相关推荐
- 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 ...
- 微信支付curl: (60) SSL certificate problem: unable to get local issuer certificate 解决方法
微信支付curl: (60) SSL certificate problem: unable to get local issuer certificate 解决方法 参考文章: (1)微信支付cur ...
- git SSL certificate problem: unable to get local issuer certificate
今天用git获取项目的时候提示git SSL certificate problem: unable to get local issuer certificate 这个问题是由于没有配置信任的服务器 ...
- git 远程仓库时报错SSL certificate problem: unable to get local issuer certificate(git版本与Let‘s Encrypt的证书导致)
起因: 之前自己的远程gitea服务一直用的IP+端口号进行使用,基本操作都没有问题.在加上SSL改为(https:\\域名)访问后浏览器页面访问正常,但进行git命令操作时报错"SSL c ...
- 【Git】SSL certificate problem: unable to get local issuer certificate错误的解决办法
问题描述 unable to access 'https://*****.git/': SSL certificate problem: unable to get local issuer cert ...
- SSL certificate problem: unable to get local issuer certificate解决办法
在github上用https克隆代码时报了如下错误 fatal: unable to access 'https://github.com/xiaogao67/gin-cloud-storage.gi ...
- 微信支付出现SSL certificate problem: unable to get local issuer certificate 解决方法
解决方法 一. 出错原因 错误提示:SSL certificate problem: unable to get local issuer certificate 是在使用 curl 时出错, ...
- 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. ...
- git clone报错:SSL certificate problem: unable to get local issuer certificate
原因 这是由于当你通过HTTPS访问Git远程仓库的时候,如果服务器上的SSL证书未经过第三方机构认证,git就会报错.因为未知的没有签署过的证书意味着可能存在很大的风险 解决办法 设置关闭SSL验证 ...
最新文章
- (四) prometheus + grafana + alertmanager 配置Kafka监控
- ListView 与 ImageList
- jquery 立体走马灯_jQuery简单的文字跑马灯特效
- 编造机中鼠标无法应用标题问题解答
- C程序设计语言现代方法08:数组
- 一些在线检测网站打开速度工具大分享
- JDK源码解析--ArrayList
- java ing印版_Java TCP实现高仿版QQ聊天(二)
- Java 重写(Override)与重载(Overload)区别
- ARC070D No Need
- hp服务器开机进系统黑屏,开机黑屏卡住?有办法了!
- Unity性能优化之物理引擎的优化(一)
- unity下载局域网内图片
- linux下C++编程学习
- ABP理论学习之实体类
- Win10+YOLOv5运行记录
- 中国科学院深圳理工大学(筹,简称深理工)明珠校区举行开园仪式并迎来首批学生...
- 【Windows】电脑不显示WiFi列表
- Android 解压中文乱码(压缩包内中文乱码)
- 信管专业的目标职位体系与职业认证体系