Skip to content

Commit 0538b4f

Browse files
author
Emory Penney
authored
Update __init__.py (#67)
Adding context.load_default_certs() to fix SSL failures
1 parent e08bb6e commit 0538b4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gpsoauth/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def init_poolmanager(self, *args: Any, **kwargs: Any) -> None:
7777
context.set_ciphers(SSL_DEFAULT_CIPHERS)
7878
context.verify_mode = ssl.CERT_REQUIRED
7979
context.options &= ~ssl.OP_NO_TICKET # pylint: disable=E1101
80+
context.load_default_certs()
8081
self.poolmanager = PoolManager(*args, ssl_context=context, **kwargs)
8182

8283

0 commit comments

Comments
 (0)