SSL certificate problem: unable to get local issuer certificate (Windows, PHP)

When you are running a PHP library on a local server, there may appear an error like this:

Fatal error: Uncaught exception 'Exception' with message
'SSL certificate problem: unable to get local issuer certificate'
in Uploadcare\Api.<php:191>
Stack trace:
#0 Api.php(225): Uploadcare\Api->request('GET', '/files/?page=&l...', Array)
#1 Api.php(108): Uploadcare\Api->__preparedRequest('file_list', 'GET', Array)
#2 include\fotos.php(16): Uploadcare\Api->getFileList(NULL)
#3 {main} thrown in Uploadcare\Api.php on line 191</php:191>

This issue is not Uploadcare related and appears when you try to access host through http.

To resolve issue, you need to configure curl to use SSL certificates store. One of the solutions is described here.