When you setup auto archiving of your reports, you may find it fails to run with the following error:
Response was 'curl_exec: SSL certificate problem: unable to get local issuer certificate. Hostname requested was: host.example
When you experience this issue, there are two solutions
- If possible, address the SSL certificate issue and get a SSL certificate for your domain name running Matomo. Then the
core:archivescript will be able to talk to Matomo over HTTPS without error.
Or if for some reason you cannot, then you can edit your crontab and add the following parameter
core:archivecommand for example:
/usr/bin/php /path/to/matomo/console core:archive --accept-invalid-ssl-certificate --url=http://example.org/matomo/ > /dev/null
Once the script knows to ignore the SSL certificate problem using this parameter, the error should be gone and the archiving script should hopefully proceed and succeed.