WindowsのPHPのCurlで”SSL certificate problem: unable to get local issuer certificate”

理由はよくわからないが解決法

https://raw.githubusercontent.com/bagder/ca-bundle/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt

をダウンロードして何処かに置く。

php.iniを編集して以下を追加。