Skip to content

Commit

Permalink
Merge pull request #101 from mi3z/mi3z_fix_ssl
Browse files Browse the repository at this point in the history
TLS connections can be established by default with system certificate…
  • Loading branch information
Nicolas committed Nov 25, 2017
2 parents 836ee4b + 47e3740 commit 7bb40a9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hbmqtt/client.py
Expand Up @@ -364,9 +364,6 @@ def _connect_coro(self):
self._handler = ClientProtocolHandler(self.plugins_manager, loop=self._loop)

if secure:
if self.session.cafile is None or self.session.cafile == '':
self.logger.warning("TLS connection can't be estabilshed, no certificate file (.cert) given")
raise ClientException("TLS connection can't be estabilshed, no certificate file (.cert) given")
sc = ssl.create_default_context(
ssl.Purpose.SERVER_AUTH,
cafile=self.session.cafile,
Expand Down

0 comments on commit 7bb40a9

Please sign in to comment.