首页 文章

Drupal 8 curl 60错误

提问于
浏览
0

我无法在本地更新drupal 8模块,因为我有错误消息

"Failed to fetch file due to error " cURL错误60:SSL证书问题:证书链中的自签名证书(请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html)“

我使用Wamp 3和php 7.0.10 . 我试过解决方案表明这个问题:

  • 在curl网站上下载cacert.pem并保存在"c:\windows"

  • C:\wamp64\bin\php\php7.0.10\php.iniC:\wamp64\bin\apache\apache2.4.23\bin\php.ini (.simlink)上设置 curl.cainfo = "c:\Windows\cacert.pem"openssl.cafile= "c:\Windows\cacert.pem"

  • 重启所有服务

问题仍然存在 .

我在论坛上测试了很多建议: - 将cacert.pem放在wamp目录中并更改2个php.ini中的路径 - 使用其他php版本测试...

有关信息Curl很好启用 . 我用phpinfo()检查了它 .

curl
cURL support    enabled
cURL Information    7.50.1
Age     3
Features
AsynchDNS   Yes
CharConv    No
Debug   No
GSS-Negotiate   No
IDN     Yes
IPv6    Yes
krb4    No
Largefile   Yes
libz    Yes
NTLM    Yes
NTLMWB  No
SPNEGO  Yes
SSL     Yes
SSPI    Yes
TLS-SRP     No
HTTP2   No
GSSAPI  No
KERBEROS5   Yes
UNIX_SOCKETS    No
PSL     No
Protocols   dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
Host    x86_64-pc-win32
SSL Version     OpenSSL/1.0.2h
ZLib Version    1.2.8
libSSH Version  libssh2/1.7.0

怎么了 ?

因为很多天我测试但没有任何作用 .

在此先感谢您的帮助 .

1 回答

相关问题