def METHOD_NAME():
    crt_path = "/etc/opt/microsoft/omsagent/certs/oms.crt"
    try:
        crt_info = subprocess.check_output(['openssl','x509','-in',crt_path,'-text','-noout'],\
                        universal_newlines=True, stderr=subprocess.STDOUT)
        if (crt_info.startswith("Certificate:\n")):
            return NO_ERROR
        error_info.append((crt_path,))
        return ERR_CERT
    # error with openssl
    except subprocess.CalledProcessError as e:
        try:
            err = e.output.split('\n')[1].split(':')[5]
            # openssl permissions error
            if (err == "Permission denied"):
                error_info.append((crt_path,))
                return ERR_SUDO_PERMS
            # openssl file existence error
            elif (err == "No such file or directory"):
                error_info.append(("file", crt_path))
                return ERR_FILE_MISSING
            # openssl some other error
            else:
                error_info.append((crt_path, err))
                return ERR_FILE_ACCESS
        # catch-all in case of fluke error
        except:
            error_info.append((crt_path, e.output))
            return ERR_FILE_ACCESS
    # general error
    except:
        error_info.append((crt_path,))
        return ERR_CERT