From 4215b562b8ac349e3dc83dba5656421b5c7b2cb8 Mon Sep 17 00:00:00 2001 From: Enkidu93 Date: Mon, 30 Oct 2023 11:35:17 -0400 Subject: [PATCH] Debug serval app --- samples/ServalApp/serval_email_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ServalApp/serval_email_module.py b/samples/ServalApp/serval_email_module.py index 5033102b..f7c99ba8 100644 --- a/samples/ServalApp/serval_email_module.py +++ b/samples/ServalApp/serval_email_module.py @@ -22,7 +22,7 @@ def password(self): return len(self.__password) * "*" def __enter__(self): - context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) + context = ssl.create_default_context() # ssl.SSLContext(ssl.PROTOCOL_SSLv23) self.server = smtplib.SMTP_SSL(host=self.host, port=self.port, context=context) self.server.login(self.sender_address, self.__password) return self