Skip to content

Commit

Permalink
Fix ssl context when certificate is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JLBIZ committed Aug 16, 2024
1 parent bd50b91 commit 960cb9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reportportal_client/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ async def session(self) -> RetryingClientSession:
ssl_config = False
else:
if type(self.verify_ssl) is str:
ssl_config = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH, cafile=self.verify_ssl)
ssl_config = ssl.create_default_context(ssl.Purpose.SERVER_AUTH, cafile=self.verify_ssl)
else:
ssl_config = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH, cafile=certifi.where())
ssl_config = ssl.create_default_context(ssl.Purpose.SERVER_AUTH, cafile=certifi.where())

connection_params = {
'ssl': ssl_config,
Expand Down

0 comments on commit 960cb9d

Please sign in to comment.