Does anybody know what's going on with SSL certificate errors in Pythonista on iPhone?
EDIT: This very forum page on omz-software.com shows a certificate error in Google Chrome on a desktop.
I tried the simplest code to retrieve a small plain text web page. I tried the same code on iPhone in Pythonista and in Pyto. Tried many other pages too.
Pyto works fine every time.
Pyntonosta fails with error message on some web sites but not others.
I think I’ve identified a pattern. Pythonista breaks on web sites with Let’s Encrypt SSL Certificate.
Even stranger behavior is that some pages fail on some days but the very same pages seem to return no errors on another day when I tested again. And back to errors again a day later.
I contacted omz-software (omz:software) support via email a few days ago but haven’t heard from them yet.
The script is extremely simple:
with urllib.request.urlopen(URL) as response: html = response.read()
The error I get:
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
/var/containers/Bundle/Application/08EAF123-C40E-4CCA-98BE-395691A7AC9D/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/urllib/request.py", line 1321, in do_open
var/containers/Bundle/Application/08EAF123-C40E-4CCA-98BE-395691A7AC9D/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/urllib/request.py", line 1362, in https_open