New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cronjob error: "curl_exec: SSL certificate problem: ..." #11077
Comments
@mr-manuel I'm not sure what the problem is, but could you try upgrade your CURL version as it's quite old. It may work better with your SSL certificate? |
Hi, now I asked my hoster to update CURL. This might take a while. Thanks |
Hi again, now they told me that I can change by myself the "ca-certificates.crt" file. |
Now by chance I rechecked my certificate and find out, that I didn't have inserted the CA bundle on the webserver. After inserting CA bundle from my certificate all works fine. Sorry for inconvenience and thanks for your patience! |
@mr-manuel What do you mean by this, could you maybe write the steps you took here, as it could help other users with the same issue? Thanks! |
Sure :) The output was following:
So I checked in my webhoster dashboard the SSL certificate for piwik.mydomain.sample and saw that the field for the ca-bundle code was empty. I pasted in the code which I got from the CA Authority and a few minutes later all worked :) Hope that this can also help others |
Thanks @mr-manuel
Is the code you refer to, similar to our list of cacert.pem? https://github.com/piwik/piwik/blob/master/core/DataFiles/cacert.pem |
No the code is not similar. The code is from the *.ca file you get, when you buy a certificate. |
Hi there :)
after setting "force_ssl = 1" in the config.ini.php, I get this error every time the system execute the cronjob:
Empty or invalid response 'Got invalid response from API request: https://piwik.mydomain.sample/?module=API&method=API.get&idSite=2&period=day&date=last52&format=php&trigger=archivephp&token_auth=removed. Response was 'curl_exec: SSL certificate problem: unable to get local issuer certificate. Hostname requested was: portal.md-service.net'' for website id 2, Time elapsed: 0.204s, skipping
The error is for every website id the same. The SSL certificate is a public one and valid until 2019. Without the "force_ssl = 1" setting the cronjob works without problems, but I'd like to activate SSL for more security. Any ideas?
I have Piwik 3.0 and PHP 5.6.
If you need more informations just let me know :)
The text was updated successfully, but these errors were encountered: