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

Read the $certificate failed, please check it whether or nor correct #2639

Closed
northFlyX opened this issue Dec 25, 2022 · 3 comments
Closed

Comments

@northFlyX
Copy link

我用的环境

  • PHP 版本:8.0
  • overtrue/wechat 版本:6.10.0
  • 是否使用了框架?框架名称:thinkphp6

问题及现象

无法解析微信证书文件,会报错
Read the $certificate failed, please check it whether or nor correct
WX20221225-173140@2x

@TheNorthMemory
Copy link

嗖,你的入参 $this->certificate 是什么?

@northFlyX
Copy link
Author

northFlyX commented Dec 25, 2022

WX20221225-175502@2x
$this->certificate是官方config示例当中的platform_certs参数,报错截图中的代码是EasyWeChat的初始化方法

@TheNorthMemory
Copy link

写绝对路径 file:///path/to/certs/wechatpay_xxxx.pem

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