'Get revoked status for a particular cert version.
.. todo:: Make this a non-blocking call
:param str cert_path: Path to certificate
:param str chain_path: Path to intermediate cert
:rtype bool or None:
:returns: True if revoked; False if valid or the check failed'

def ocsp_revoked(self, cert_path, chain_path):

    if self.broken:
        return False
    (url, host) = self.determine_ocsp_server(cert_path)
    if (not host):
        return False
    cmd = (['openssl', 'ocsp', '-no_nonce', '-issuer', chain_path, '-cert', cert_path, '-url', url, '-CAfile', chain_path, '-verify_other', chain_path, '-trust_other', '-header'] + self.host_args(host))
    logger.debug('Querying    OCSP    for    %s', cert_path)
    logger.debug('    '.join(cmd))
    try:
        (output, err) = util.run_script(cmd, log=logger.debug)
    except errors.SubprocessError:
        logger.info('OCSP    check    failed    for    %s    (are    we    offline?)', cert_path)
        return False
    return _translate_ocsp_query(cert_path, output, err)
