oeis and SSL: CERTIFICATE_VERIFY_FAILED

120 views
Skip to first unread message

Martin R

unread,
Jul 23, 2022, 12:24:49 PM7/23/22
to sage-devel
Since recently I have the problem below on ubuntu 20.04, current devel branch.  Am I doing something wrong?

Best wishes,

Martin

sage: oeis([1,2,3,5,8])
---------------------------------------------------------------------------
SSLCertVerificationError                  Traceback (most recent call last)
...
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

URLError                                  Traceback (most recent call last)
...
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
...
OSError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
error fetching https://oeis.org/search?q=1%2C+2%2C+3%2C+5%2C+8&n=3&fmt=text&start=0

Martin R

unread,
Jul 25, 2022, 1:56:15 PM7/25/22
to sage-devel
sudo update-ca-certificates --fresh

and

export SSL_CERT_DIR=/etc/ssl/certs/

fixed the issue.  No idea why.  Thanks Travis!

Martin
Reply all
Reply to author
Forward
0 new messages