沃梦达 / 编程问答 / php问题 / 正文

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

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