打包二进制文件时报错

wqlim

问题描述

打包二进制文件时报错

报错信息

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>]

截图报错信息里报错文件相关代码

这里粘贴截图

截图

661 1 1
1个回答

walkor

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

重试

  • wqlim 2023-07-03

    非常感谢,已经好了

🔝