How do I fix the issue “Response was ‘curl_exec: SSL certificate problem: unable to get local issuer certificate. Hostname requested was:” in the archiver?
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.
Thanks for contacting us! We will get in touch with you shortly.
Feedback on this page
Next FAQ: What to do when you see curl: (60) SSL certificate problem: unable to get local issuer certificate error?Previous FAQ: How do I fix the error ‘Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?’