问题
因为微信支付的HTTPS服务器证书升级,所以得安装DigiCert的根CA证书,我的系统是 CentOs,按照微信给出的方案是
安装根证书管理包软件: yum install ca-certificates
打开根证书动态配置开关: update-ca-trust force-enable
将DigiCert的根证书文件复制到: /etc/pki/ca-trust/source/anchors/
安装根证书: update-ca-trust extract
(更多的命令行参数及说明, 请查看: man update-ca-trust)
安装完成后,测试微信给出的测试地址,没问题。但是线上服务挂了。报错如下
PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error: