Circuit-Analysis / circuit-analysis.github.io

0 stars 0 forks source link

Fix errors on SSL to differential equation website #22

Open kootsoop opened 1 year ago

kootsoop commented 1 year ago

( chapter-12: line 699) broken https://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx - HTTPSConnectionPool(host='tutorial.math.lamar.edu', port=443): Max retries exceeded with url: /Classes/DE/SecondOrderConcepts.aspx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))) ( chapter-12: line 699) broken https://tutorial.math.lamar.edu/classes/de/Linear.aspx - HTTPSConnectionPool(host='tutorial.math.lamar.edu', port=443): Max retries exceeded with url: /classes/de/Linear.aspx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

kootsoop commented 1 year ago

Simple reproduction:

python3 -c 'import requests; print(requests.get("http://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx").text)'

kootsoop commented 1 year ago

Looks like site is issuing 302 redirects.

curl -I http://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx
HTTP/1.0 302 Moved Temporarily Location: https://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx Server: BigIP Connection: Keep-Alive Content-Length: 0

kootsoop commented 1 year ago

But this one gives an error:

curl -I https://tutorial.math.lamar.edu/classes/de/Linear.aspx curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.