打包二进制文件时报错
Phar packing...
Files collect complete, begin add file to Phar.
Write requests to the Phar archive, save changes to disk.
Downloading PHP8.1 ...
In BuildBinCommand.php line 63:
stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
build:bin [<version>]
这里粘贴截图
php环境缺少证书导致的
1、下载cert证书到本地 D:/nginx/cacert.pem,地址:https://curl.haxx.se/ca/cacert.pem
2、修改php.ini openssl.cafile= 改为 openssl.cafile=D:/nginx/cacert.pem
重试
非常感谢,已经好了