Python URLLib will not accept Let's Encrypt Websites (from Europe only)

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Naleksuh
A semi-regular
A semi-regular
Posts: 19
Joined: Thu Jul 25, 2019 12:35 am

Python URLLib will not accept Let's Encrypt Websites (from Europe only)

Post by Naleksuh » Tue May 19, 2020 11:10 am

Hello, I have what seems to be the strangest issue. Python's URLLib library gives an error authenticating the certificate of any website using Let's Encrypt, both NFO-based websites and non-nfo websites that use Let's Encrypt (such as catchpoint.com).

When trying to use Python's URLLib to read the contents of this webpage (through

Code: Select all

import urllib
then

Code: Select all

print(urllib.urlopen("https://catchpoint.com").read())
substituting anything else with Let's Encrypt, I get an error looking like this: IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727) . However, this only happens from my Europe VPS, from either of my United States VPS this does not happen, I have already verified both versions of Python and all software as being the same on both. Any particular reason that Let's Encrypt may not be being verified properly from Europe VPS only? I have already asked NFO Support about this but it seems the problem is not through NFO and I would like to ask here for general community support

User avatar
Edge100x
Founder
Founder
Posts: 12362
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Python URLLib will not accept Let's Encrypt Websites (from Europe only)

Post by Edge100x » Fri May 22, 2020 8:08 am

Are you certain that you're running the latest OS updates? Each OS has a certificate store that contains root certificates, and that's where Let's Encrypt should be authorized as a CA. If your authentication is failing, that suggests that the certificate for LE may be missing. It should have been included in an OS update.

Naleksuh
A semi-regular
A semi-regular
Posts: 19
Joined: Thu Jul 25, 2019 12:35 am

Re: Python URLLib will not accept Let's Encrypt Websites (from Europe only)

Post by Naleksuh » Fri May 22, 2020 9:02 am

Edge100x wrote:
Fri May 22, 2020 8:08 am
Are you certain that you're running the latest OS updates? Each OS has a certificate store that contains root certificates, and that's where Let's Encrypt should be authorized as a CA. If your authentication is failing, that suggests that the certificate for LE may be missing. It should have been included in an OS update.
Yes, I've tried updating the OS, I have also tried freshly reinstalling it. See also this ticket: https://www.nfoservers.com/support/tick ... ?id=343940

Naleksuh
A semi-regular
A semi-regular
Posts: 19
Joined: Thu Jul 25, 2019 12:35 am

Re: Python URLLib will not accept Let's Encrypt Websites (from Europe only)

Post by Naleksuh » Sat May 23, 2020 1:48 pm

Before, I said the problem is neither the fault of my configuration nor NFO, as I am able to do the exact same procedure in both VPSes with different results, and the only differing factor being regions.

However, I recently tried on my own personal computer (United States) and my friend in the United Kingdom, and it works in both cases there. It is most likely that this problem is the fault of Internap

Post Reply