Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我破坏了Mac的PHP设置:SSL认证失败_Php_Ssl - Fatal编程技术网

我破坏了Mac的PHP设置:SSL认证失败

我破坏了Mac的PHP设置:SSL认证失败,php,ssl,Php,Ssl,长话短说,我删除了Mac上的PHP符号链接,并将其替换为XAMPP中的符号链接。现在看来,我的SSL配置有问题,或者在我看来,缺少SSL配置 例如,当我运行composer self update时,它会抛出以下错误: [Composer\Downloader\TransportException] The "https

长话短说,我删除了Mac上的PHP符号链接,并将其替换为XAMPP中的符号链接。现在看来,我的SSL配置有问题,或者在我看来,缺少SSL配置

例如,当我运行composer self update时,它会抛出以下错误:

[Composer\Downloader\TransportException]                                                                                       
  The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:  
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed                                              
  Failed to enable crypto                                                                                                        
  failed to open stream: operation failed
我从某处得到的,上面写着:

野草 String69 SSL证书问题:证书链中的自签名证书 String0

看起来curl.cainfo是从php.ini中取消设置的

Curlerror.txt说:

* About to connect() to extensions.bolt.cm port 443 (#0)
*   Trying 46.17.0.55...
* Adding handle: conn: 0x100976400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x100976400) send_pipe: 1, recv_pipe: 0
* Connected to extensions.bolt.cm (46.17.0.55) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: /Applications/XAMPP/xamppfiles/share/curl/curl-ca-bundle.crt
  CApath: none
* SSL certificate problem: self signed certificate in certificate chain
* Closing connection 0

那么,关于如何解决这个问题有什么想法吗?我应该在php.ini或其他地方设置curl.cainfo并将其指向my certs位置吗?那个位置在哪里?

也许更适合通用计算?我不明白你的意思