Closed davebulaval closed 2 years ago
Thanks for reporting this issue!
As a temporary fix, I've disabled SSL certificate verification (and the resulting warning, as done here: https://github.com/GRAAL-Research/deepparse/issues/156), so upgrading bpemb to the latest version should make everything work as before.
Looking at the certificate, it seems that it was renewed a couple of days ago on 2022-09-20 and is valid until 2023-10-10, so it shouldn't be expired. I'll try to find out what is going on.
Looked into this a bit more. When opening https://nlp.h-its.org or downloading files via a web browser, none of the four browsers I tried had any issues and all browsers were able to verify the three certificates on the SSL certificate chain.
On the Python side, the requests module delegates SSL certification to the certifi package, which stores trusted certificates in the location given by
>>> import certifi
>>> certifi.where()
'.../site-packages/certifi/cacert.pem'
Assuming that certifi is not trusting the *.h-its.org
certificate, I thought that adding it manually would solve the issue, but it didn't. Trying the other certificates on the chain, it turns out that certifi doesn't trust the second one, GeoTrust RSA CA 2018
. After adding this certificate to the cacert.pem
file, requests.get
works as before, i.e., without having to do verify=False
.
I have no knowledge of SSL certificates whatsoever, but it looks to me that this isn't an issue with the *.h-its.org
certificate. I"m guessing that the secure way to resolve this issue would be to either ask certifi to add that certificate to its default .pem file, or for each user to manually add it to their cacert.pem locally. Neither of those options looks particularly compelling to me, so I'm inclined to leave SSL verification disabled until certifi trusts that certificate.
I've been using BPEmb in one of my packages (Deepparse), and it just got to my attention that either your SSL certificate has expired or request implemented a breaking change, but now on a clean install/download of BPEmb model weights, I get an
SSLError
.If no certificates are usually in place for the HTTPS link, here is a quick fix. Otherwise, if you could update the certificate as soon as possible?
To reproduce
Error stack