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
基础教程推荐
- 超薄框架REST服务两次获得输出 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01