The quot;https://getcomposer.org/versionsquot; file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error: 1416F086(“https://getcomposer.org/versions无法下载文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:1416F086)
问题描述
我正在尝试在 Windows 上安装 composer 但我收到以下错误:
I'm trying to install composer on Windows but I get the following error:
无法下载https://getcomposer.org/versions"文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:1416F086:SSL 例程:tls_process_server_certificate:证书验证失败 启用加密失败 无法打开流:操作失败了.
The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error: 1416F086: SSL routines: tls_process_server_certificate: certificate verify failed Failed to enable crypto failed to open stream: operation failed.
发生了什么,我该如何解决?
What's going on and how do I fix this?
推荐答案
我已经解决了,你遇到的问题好像是证书丢失的问题.
I have fixed it, the issue you have encountered seems to be related to a missing certificate.
您只需将您的证书添加到此文件的末尾:
You just need to add your certificate to end of this file:
C:xamppapacheincurl-ca-bundle.crt
C:xamppapacheincurl-ca-bundle.crt
以下是如何附加证书的示例:
Here's an example how to append the certificate:
-----开始证书-----
-----BEGIN CERTIFICATE-----
MIIDujCCAqKgAwIBAgILBAAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4GA1UECxMXR2xvYmFsU2>lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjE...(您的证书)
MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4GA1UECxMXR2xvYmFsU2>lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh bFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjE... (Your certificate)
-----结束证书-----
-----END CERTIFICATE-----
这篇关于“https://getcomposer.org/versions"无法下载文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:1416F086的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“https://getcomposer.org/versions"无法下载文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:1416F086
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- Laravel 仓库 2022-01-01