ssl

Why is 'https://revoked.badssl.com/' and 'https://pinning-test.badssl.com/' returning 200 response using Python requests?

Why is 'https://revoked.badssl.com/' and 'https://pinning-test.badssl.com/' returning 200 response using Python requests? Question: I’m working with Python requests and testing URLs from https://badssl.com/ certificate section and all the invalid URLs are returning errors except for https://revoked.badssl.com/ and https://pinning-test.badssl.com/. They are responding with 200 status codes. I would like someone to explain why this is happening, despite …

Total answers: 1

Python SSL Socket certificate-private keys mismatch doesn't give error?

Python SSL Socket certificate-private keys mismatch doesn't give error? Question: enthusiasts! Short version: I can change the private keys so that they do not match the certificates and the ssl handshake and messages still go through. Long version: I have set up a simple client-server python ssl socket. The client is on a laptop and …

Total answers: 1

How to safely authenticate a user using LDAP?

How to safely authenticate a user using LDAP? Question: For context: I am developing a web application where users need to authenticate to view internal documents. I neither need any detailed info on users nor special permission management, two states are sufficient: Either a session belongs to an authenticated user (→ documents can be accessed) …

Total answers: 1

Installing SSL package with PIP requires SSL package to be already installed

Installing SSL package with PIP requires SSL package to be already installed Question: CentOS 7 (strict requirement) Python 3.11 (strict requirement) I had to upgrage a software and it requires now Python 3.11. I followed instructions from Internet (https://linuxstans.com/how-to-install-python-centos/), and now Python 3.11 is installed, but cannot download anything, so all the programs that have …

Total answers: 1

Why do I keep getting SSL: CERTIFICATE_VERIFY_FAILED] error when using API's?

Why do I keep getting SSL: CERTIFICATE_VERIFY_FAILED] error when using API's? Question: I realized that basically every time I try to use an API based library (quandl, pandas datareader or just a normal Google API for search engine), I keep getting the exceptions.SSLError (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in …

Total answers: 3

Python's requests triggers Cloudflare's security while accessing etherscan.io

Python's requests triggers Cloudflare's security while accessing etherscan.io Question: I am trying to parse/scrape https://etherscan.io/tokens website using requests in Python but I get the following error: etherscan.io Checking if the site connection is secure etherscan.io needs to review the security of your connection before proceeding. Ray ID: 73b56fc71bc276ed Performance & security by Cloudflare Now, I …

Total answers: 1

SSL: CERTIFICATE_VERIFY_FAILED when using pretrained detectron2 model

SSL: CERTIFICATE_VERIFY_FAILED when using pretrained detectron2 model Question: I am trying to just use the pretrained mask_rcnn_R_50_FPN_3x model in detectron2 on an image. I get the error ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131). I am using Windows Subsystem for Linux. The following code produces the error. from detectron2.config …

Total answers: 2

Socket.IO https/ssl in iOS and Python App Engine

Socket.IO https/ssl in iOS and Python App Engine Question: I’ve built an GCP App Engine service in Python 3.7 using Flask and an iOS app in Swift.. the apps are using Socket.IO to connect and transfer data. Everything works great with a local deployment, however when deploying to GCP the SocketIO connection is never upgraded …

Total answers: 1

SSL error unsafe legacy renegotiation disabled

SSL error unsafe legacy renegotiation disabled Question: I am running a Python code where I have to get some data from HTTPSConnectionPool(host=’ssd.jpl.nasa.gov’, port=443). But every time I try to run the code I get the following error. I am on MAC OS 12.1 raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host=’ssd.jpl.nasa.gov’, port=443): Max retries exceeded with url: /api/horizons.api?format=text&EPHEM_TYPE=OBSERVER&QUANTITIES_[…]_ …

Total answers: 6

SSLCertVerificationError when downloading pytorch datasets via torchvision

SSLCertVerificationError when downloading pytorch datasets via torchvision Question: I am having trouble downloading the CIFAR-10 dataset from pytorch. Mostly it seems like some SSL error which I don’t really know how to interpret. I have also tried changing the root to various other folders but none of them works. I was wondering whether it is …

Total answers: 2