Skip to content

Commit

Permalink
Merge pull request #235 from JLBIZ/bugfix/ssl_verify
Browse files Browse the repository at this point in the history
Fix ssl context when certificate is provided
  • Loading branch information
HardNorth authored Aug 17, 2024
2 parents bd50b91 + 960cb9d commit f1ce5f7
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 f1ce5f7

Please sign in to comment.