Steps:

  1. Go to https://github.com/bagder/ca-bundle/tree/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09
  2. Fork or download the repository, put the file ca-bundle.crt in a certain place.
  3. Open php.ini, add two lines of code:

curl.cainfo=“your-dir/ca-bundle.crt”

openssl.cafile=“your-dir/ca-bundle.crt”

Everything works fantastically now!

 

This is useful for your are scraping the Twitter.