Hi,
I had a python code based on SPARQL-Wrapper 1.8.2 that queries an "https" SPARQL end-point.
It worked fine until now.
But since the SSL certificate was updated on that SPARQL end-point last week, I now do get an error:
"urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)"
There seems to be an issue with the CA as a curl was also failing and firefox gave a "SEC_ERROR_UNKNOWN_ISSUER".
My next step was to add the public key of that certificate manually.
I did add the public key to my ubuntu system (new .crt file, update-ca-certificates command), and the curl works now fine.
The public certificate was added to "/etc/ssl/certs/ca-certificates.crt"
However, I did not find a way to get my python script working again, the problem is still there.
I am struggling with this since quiet a few hours, hence asking for your help.
I did try a few things, like:
- writing simple code to access the end-point -> that code fails with the same error as SPARQL-Wrapper
- making some variables (export) to that .crt file (REQUESTS_CA_BUNDLE, SSL_CERT_FILE, SSL_CERT_DIR)
no change
- installing "certifi", and add my public certificate to the file given by certifi.where(): '/home/fabian/.local/lib/python3.5/site-packages/certifi/cacert.pem'
no change
Would you have any pointer ?
Thank you for your help
Fabian