【发布时间】:2017-04-23 18:16:31
【问题描述】:
我在我的本地主机 Windows 10 上运行 xampp
- Apache/2.4.7
- PHP 5.5.9
当我尝试调用 Recurly PHP API(API 版本 = 2.7.0)时,它返回此错误
无法验证 Recurly 的 SSL 证书。
https://github.com/recurly/recurly-client-php
当我使用以前版本的递归库(API 版本 = 2.5.3)时,它运行良好。
在此 API 存储库的 README 文件中,有以下行,但不确定如何在 Windows 上执行此操作。
Recurly_Client::$CACertPath = '/usr/local/etc/openssl/cert.pem';
谁能帮我解决这个问题?
【问题讨论】:
-
您需要将其指向证书包。或许可以看这里:neurotechnics.com/blog/ssl-ca-bundles-for-curl-and-php