From 0538b4f4992530cb8faaa993312af2d80842d769 Mon Sep 17 00:00:00 2001 From: Emory Penney Date: Sun, 9 Jun 2024 14:14:10 -0700 Subject: [PATCH] Update __init__.py (#67) Adding context.load_default_certs() to fix SSL failures --- gpsoauth/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gpsoauth/__init__.py b/gpsoauth/__init__.py index 86e930b..1062a23 100644 --- a/gpsoauth/__init__.py +++ b/gpsoauth/__init__.py @@ -77,6 +77,7 @@ def init_poolmanager(self, *args: Any, **kwargs: Any) -> None: context.set_ciphers(SSL_DEFAULT_CIPHERS) context.verify_mode = ssl.CERT_REQUIRED context.options &= ~ssl.OP_NO_TICKET # pylint: disable=E1101 + context.load_default_certs() self.poolmanager = PoolManager(*args, ssl_context=context, **kwargs)