SSL Certificate Failed

Have been using Log Analytics without SSL for a few weeks. Enabled SSL and now I am getting:
Error when connecting to Matomo: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
This is while running the script. I can access my Matomo website fine using https but the log analytics script connection fails.
Any suggestions


Can you try connecting to your website using curl on the commandline? Maybe the SSL root certificates on the server are outdated.

Running Curl I get:

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: curl - SSL CA Certificates

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

I’m not sure why it doesn’t find the local issuer certificate. I am able to go around it by adding PYTHONHTTPSVERIFY=0 before the python2 command but I would rather not do this.

Okay, this means it is not because of the python script (thankfully as searching for the issue there would be hard).

Maybe check your website on to make sure the issue is in the client and not the server setup.

If it is indeed your client then make sure you are using the latest version of your distribution and the root certificates are up to date.

Cannot use because this is an intranetsite. I have verified that the certs are up to date.

In that case make sure your server trusts the root certificate if it is a selfsigned one.