diff --git a/salt/transport/tcp.py b/salt/transport/tcp.py index 5738114deb0d..0dca8d6e4cf6 100644 --- a/salt/transport/tcp.py +++ b/salt/transport/tcp.py @@ -275,16 +275,17 @@ async def getstream(self, **kwargs): self._tcp_client = TCPClientKeepAlive( self.opts, resolver=self.resolver ) - ctx = None - if self.ssl is not None: - ctx = salt.transport.base.ssl_context( - self.ssl, server_side=False - ) + # ctx = None + # if self.ssl is not None: + # ctx = salt.transport.base.ssl_context( + # self.ssl, server_side=False + # ) stream = await asyncio.wait_for( self._tcp_client.connect( ip_bracket(self.host, strip=True), self.port, - ssl_options=ctx, + # ssl_options=ctx, + ssl_options=self.opts.get("ssl"), **kwargs, ), 1,