1) Download the latest cacert.pem from https://curl.haxx.se/ca/cacert.pem
2) Add the following line to php.ini (if this is shared hosting and you don't have access to php.ini then you could add this to .user.ini in public_html)
curl.cainfo=/path/to/downloaded/cacert.pem
3) By default the FastCGI process will parse new files every 300 seconds (if required you can change the frequency by adding a couple of files as suggested herehttps://ss88.uk/blog/fast-cgi-and-user-ini-files-the-new-htaccess/)