Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Created June 11, 2019 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdullahbutt/b94ea4f5b5d315afdf786073a16b31ec to your computer and use it in GitHub Desktop.
Save abdullahbutt/b94ea4f5b5d315afdf786073a16b31ec to your computer and use it in GitHub Desktop.
failed loading cafile stream: curl-ca-bundle.crt
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"
@caioyurilopes
Copy link

It work's to me doing this, thanks mate!

@abdullahbutt
Copy link
Author

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