Created
June 11, 2019 11:09
-
-
Save abdullahbutt/b94ea4f5b5d315afdf786073a16b31ec to your computer and use it in GitHub Desktop.
failed loading cafile stream: curl-ca-bundle.crt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error / Notice / Issue: | |
failed loading cafile stream: `C:\xampp\apache\bin\curl-ca-bundle.crt' | |
Issue | |
[curl] | |
; A default value for the CURLOPT_CAINFO option. This is required to be an | |
; absolute path. | |
;curl.cainfo= | |
[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= | |
Solution | |
Download latest caert certificate from: | |
https://curl.haxx.se/docs/caextract.html | |
[curl] | |
; A default value for the CURLOPT_CAINFO option. This is required to be an | |
; absolute path. | |
curl.cainfo ="D:\wamp64\bin\php\php7.1.9\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="D:\wamp64\bin\php\php7.1.9\extras\ssl\cacert.pem" |
It work's to me doing this, thanks mate!
You are most welcome!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It work's to me doing this, thanks mate!