“https://getcomposer.org/versions"无法下载文件:SSL 操作失败,代码为 1.OpenSSL 错误消息:错误:1416F086

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)
本文介绍了“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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)