Open syats opened 4 years ago
@abuonomo @syats these two PR (#135 #147) are quite similar. From your experience, what could be the best and simplest solution?
I vote for this one (and otherwise generally approve this PR -- as far as that helps). The reason is that this way you can use certifi
if you want.
e.g.
import certifi
from SPARQLWrapper import SPARQLWrapper
sparql = SPARQLWrapper(endpoint, custom_cert_filename=certifi.where())
This is useful in case of outdated system certificates. Increasingly a problem to the extent that web browsers and the extremely popular Python library requests
both bundle their own certificates (requests actually uses certifi
).
In order to handle SPARQL endpoints with self-signed certificates, a new parameter was introduced to the init of the Wrapper for a .pem file of the certificate.