def _check_revoked_cert(self, ssl_socket):
            if not self._has_credential('crl'):
                return True

            servcert = ssl_socket.get_peer_certificate()
            servserial = servcert.get_serial_number()
            for rev in self.crl.get_revoked():
                if servserial == str_to_long(rev.get_serial(), 16):
                    raise SecurityError("Server certificate has been revoked")
Checks whether the server certificate on the passed socket has been
dataset/ETHPy150Open basho/riak-python-client/riak/security.py/SecurityCreds._check_revoked_cert