“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-----
相关文章