working solution:
- Assuming On windows
XAMPP server
similar for other environment – download and extract for cacert.pem here (a clean file format/data)
- put it here
C:\xampp\php\extras\ssl\cacert.pem
- in your php.ini put this line in this section:
;;;;;;;;;;;;;;;;;;;; ; php.ini Options ; ;;;;;;;;;;;;;;;;;;;; curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
- restart your webserver/apache
Problem solved!