ssl

MongoDB Atlas ServerSelectionTimeoutError: SSL handshake failed

MongoDB Atlas ServerSelectionTimeoutError: SSL handshake failed Question: I’m having a hard time fetching some data from my mongodb database using pymongo driver. I keep getting the following error: pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed: ac-mtxrap4-shard-00-01.vfg8vpd.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007),SSL handshake failed: ac-mtxrap4-shard-00-00.vfg8vpd.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007),SSL handshake failed: ac-mtxrap4-shard-00-02.vfg8vpd.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] …

Total answers: 1

Pre-commit install-hooks does not work (SSLError)

Pre-commit install-hooks does not work (SSLError) Question: I use conda Python environments. Whenever I try to run pre-commit install-hooks, I get the error Could not fetch URL https://pypi.org/simple/ruamel-yaml/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded w ith url: /simple/ruamel-yaml/ (Caused by SSLError("Can’t connect to HTTPS URL because the SSL …

Total answers: 1

Problem when installing Python from source, SSL package missing even though openssl installed

Problem when installing Python from source, SSL package missing even though openssl installed Question: The Problem Trying to install Python-3.11.1 from source on Zorin OS (Ubuntu16 based) I get the following errors when I try to pip install any package into a newly created venv: python3.11 -m venv venv source venv/bin/active pip install numpy WARNING: …

Total answers: 1

How can i add subject to my python email program in ssl?

How can i add subject to my python email program in ssl? Question: I want to add subject to my python email program how can i do that? i dont want to use any python libraries i just want to do that with ssl, Can anyone can give me code example so that i can …

Total answers: 1

AES-GCM 256-bit VS. SSL/TLS for socket security

AES-GCM 256-bit VS. SSL/TLS for socket security Question: Is there a difference between using AES-GCM 256-bit encryption, or using SSL/TLS to pass data over a socket. I am currently passing data back and forth from client to server, using asymmetric AES-GCM 256-bit encryption. Is there an advantage to using SSL/TLS as opposed to my current …

Total answers: 1

GCP Dataflow Kafka and missing SSL certificates

GCP Dataflow Kafka and missing SSL certificates Question: I’m trying to fetch the data from Kafka to Bigquery using GCP Dataflow. My Dataflow template is based on Python SDK 2.42 + Container registry + apache_beam.io.kafka. There is my pipeline: def run( bq_dataset, bq_table_name, project, pipeline_options ): with Pipeline(options=pipeline_options) as pipeline: kafka = pipeline | ReadFromKafka( …

Total answers: 1

MongoEngine cannot connect through Atlas Uri string. Tried everything

MongoEngine cannot connect through Atlas Uri string. Tried everything Question: I’m new to programming and am building my first app.. I’m building a kivy app trying to use mongoDB as the database. I can connect to a localhost to query and create documents. I cannot get it to connect to the atlas no matter what …

Total answers: 1

Python SMTP 'unable to get local issuer certificate' in python virtualenv

Python SMTP 'unable to get local issuer certificate' in python virtualenv Question: Sorry if title is unclear. I’m trying to send an email through python 3.10 through the standard library. It works locally on my machine with these default settings. smtp_server = "smtp.office365.com" port = 587 # For starttls sender_email = os.environ.get("EMAIL") password = os.environ.get("EMAIL_PASSWORD") …

Total answers: 1

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