Skip to content

Commit

Permalink
Update __init__.py (#67)
Browse files Browse the repository at this point in the history
Adding context.load_default_certs() to fix SSL failures
  • Loading branch information
ejpenney authored Jun 9, 2024
1 parent e08bb6e commit 0538b4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpsoauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 0538b4f

Please sign in to comment.