so the solution based on this article How to fix PHP Curl HTTPS Certificate Authority issues on Windows • PHP.Watch is
To make it work on Windows, you can follow the instructions contained in the “Download and maintain a cacert.pem file” section:
- Download the cacert.pem file
- Move the file to a directory accessible by PHP and the web server. For example, to C:/php/cacert.pem.
- Edit the php.ini file and modify the curl.cainfo entry to point to the absolute path to the cacert.pem file.
- Optionally, restart the Web server (such as Apache) to reload the INI file.