self.sock = sock
self._tunnel()
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,
    ssl_version=ssl.PROTOCOL_TLSv1)
httplib.HTTPSConnection.connect = connect
Getting certificate verify failed error with mechanize