def ssl_invalid_cert(self, raw_cert):
        hosts = resolver.get_SRV(self.boundjid.server, 5222,
                                 'xmpp-client',
                                 resolver=resolver.default_resolver())

        domain_uses_google = False
        for host, _ in hosts:
            if host.lower()[-10:] == 'google.com':
                domain_uses_google = True

        if domain_uses_google:
            try:
                if cert.verify('talk.google.com', ssl.PEM_cert_to_DER_cert(raw_cert)):
                    logging.debug('Google certificate found for %s', self.boundjid.server)
                    return
            except cert.CertificateError:
                pass

        logging.error("Invalid certificate received for %s", self.boundjid.server)
        self.disconnect()
Return a pretty-printed string representation of this chart.
dataset/ETHPy150Open rllynch/pi_garage_alert/bin/pi_garage_alert.py/Jabber.ssl_invalid_cert--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/parse/chart.py/Chart.pretty_format