def _ssl_handshake(self):
            if self._client._credentials:
                try:
                    ssl_ctx = configure_pyopenssl_context(self.
                                                          _client._credentials)
                    # attempt to upgrade the socket to SSL
                    ssl_socket = Connection(ssl_ctx, self._socket)
                    ssl_socket.set_connect_state()
                    ssl_socket.do_handshake()
                    # ssl handshake successful
                    self._socket = ssl_socket

                    self._client._credentials._check_revoked_cert(ssl_socket)
                    return True
                except Exception as e:
                    # fail if *any* exceptions are thrown during SSL handshake
                    raise SecurityError(e)
Create a :class:`Range` for the :class:`Chart`.
dataset/ETHPy150Open basho/riak-python-client/riak/transports/tcp/connection.py/TcpConnection._ssl_handshake--crossover with--dataset/ETHPy150Open bokeh/bokeh/bokeh/charts/builder.py/XYBuilder._get_range