解决windows安装composer报错"PHP Warning: copy(): SSL operation failed with code 1."

摘要: 1.https://curl.se/docs/caextract.html下载证书;...

1.https://curl.se/docs/caextract.html下载证书;

2. 配置php.ini:打开php.ini文件,搜索“openssl.cafil=,输入证书的正确路径。

openssl.cafile= D:\BtSoft\我的证书名称.pem

3.重启PHP服务即可。

分享