PHP webDav client gives ClientException: SSL certificate problem: unable to get local issuer certificate

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:

  1. Download the cacert.pem file
  2. Move the file to a directory accessible by PHP and the web server. For example, to C:/php/cacert.pem.
  3. Edit the php.ini file and modify the curl.cainfo entry to point to the absolute path to the cacert.pem file.
  4. Optionally, restart the Web server (such as Apache) to reload the INI file.
1 Like