@defer.inlineCallbacks
    def _check_key_revocation(self, public_key, url):
        try:
            response = yield self.hs.get_simple_http_client().get_json(
                url,
                {"public_key": public_key}
            )
        except Exception:
            raise SynapseError(
                502,
                "Third party certificate could not be checked"
            )
        if "valid" not in response or not response["valid"]:
            raise AuthError(403, "Third party certificate was invalid")
Checks whether public_key has been revoked.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/federation.py/FederationHandler._check_key_revocation