code: def set_tlsio(self, hostname, port, http_proxy):
          
          _default_tlsio = c_uamqp.get_default_tlsio()
          _tlsio_config = c_uamqp.TLSIOConfig()
          _tlsio_config.hostname = hostname
          _tlsio_config.port = int(port)
          if http_proxy:
              proxy_config = self._build_proxy_config(hostname, port, http_proxy)
              _tlsio_config.set_proxy_config(proxy_config)
          self._underlying_xio = c_uamqp.xio_from_tlsioconfig(_default_tlsio, _tlsio_config)
  
          cert = self.cert_file or certifi.where()
          with open(cert, 'rb') as cert_handle:
              cert_data = cert_handle.read()
              try:
                  self._underlying_xio.set_certificates(cert_data)
              except ValueError:
                  _logger.warning('Unable to set external certificates.')
          self.sasl_client = _SASLClient(self._underlying_xio, self.sasl)
          self.consumed = False
docs: Setup the default underlying TLS IO layer. On Windows this is
          Schannel, on Linux and MacOS this is OpenSSL.
  
          :param hostname: The endpoint hostname.
          :type hostname: bytes
          :param port: The TLS port.
          :type port: int