def revoke_cert(project_id, file_name):
    start = os.getcwd()
    os.chdir(ca_folder(project_id))
    # NOTE(vish): potential race condition here
    utils.execute('openssl', 'ca', '-config', './openssl.cnf', '-revoke',
                  file_name)
    utils.execute('openssl', 'ca', '-gencrl', '-config', './openssl.cnf',
                  '-out', FLAGS.crl_file)
    os.chdir(start)
Revoke a cert by file name.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/crypto.py/revoke_cert