admin管理员组文章数量:1389903
I'm having a problem. when I try to make a request, sometimes when I perform a composer update or other actions, I get error curl 60. SSL issues.
I've reviewed many posts about this problem and tried several solutions. None of them worked for me, except for one. It is: Add this line in the request:
withOptions(['verify' => false])
I mean, I haven't found a solution for Composer update. So, it only works as an emergency measure for requests. Now, what I've tried:
Change the certificate cacert.pem
I made sure the php.ini file had the correct path.
I attach photos of the folder directory, in addition to the php.ini
You had it like this in php.ini, but I promise you I've put 20 different paths, all pointing to the file. And nothing.
curl.cainfo = "C:\laragon\bin\php\php-8.3.7-Win32-vs16-x64\extras\ssl\cacert.pem"
[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
;openssl.cafile
; If openssl.cafile is not specified or if the CA file is not found, the
; directory pointed to by openssl.capath is searched for a suitable
; certificate. This value must be a correctly hashed certificate directory.
; Most users should not specify a value for this directive as PHP will
; attempt to use the OS-managed cert stores in its absence. If specified,
; this value may still be overridden on a per-stream basis via the "capath"
; SSL stream context option.
;openssl.capath=
The openssl.cafile, which I mentioned before the problem arose, was commented out. I tried uncommenting it, adding the path, and testing whether adding the same path worked, and it didn't work either. I also tried some commands disabling composer verification in an SSL project, which I honestly don't remember which commands they were.
How to fix curl error 60
本文标签:
版权声明:本文标题:javascript - Error en la solicitud Matrix: cURL error 60: SSL certificate problem: unable to get local issuer certificate - Stac 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744633484a2616680.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论