def METHOD_NAME(options):
    OSIMAGE_RPM_CERTIFICATE_PATH = "/srv/susemanager/salt/images"
    if options.target_os == 'SLE11':
        CA_CERT_RPM_NAME_OSIMAGE = CA_CRT_RPM_NAME + "-osimage-sle11"
        OSIMAGE_RPM_REQUIRES = ["openssl-certs", "coreutils"]
    else:
        CA_CERT_RPM_NAME_OSIMAGE = CA_CRT_RPM_NAME + "-osimage"
        OSIMAGE_RPM_REQUIRES = ["ca-certificates", "shadow"]
    ca_cert_name = os.path.basename(options.ca_cert_full_path)
    ca_cert = options.ca_cert_full_path
    ca_cert_rpm_osimage = os.path.join(OSIMAGE_RPM_CERTIFICATE_PATH, CA_CERT_RPM_NAME_OSIMAGE)
    ver, rel = '1.0', '1'
    update_trust_script = os.path.join(CERT_PATH, 'update-ca-cert-trust.sh')
    args = (os.path.join(CERT_PATH, 'gen-rpm.sh') + " "
            "--name %s --version %s --release %s --packager %s --vendor %s "
            "%s "
            "--group 'RHN/Security' --summary %s --description %s "
            "--post %s --postun %s "
            "/usr/share/rhn/%s=%s"
            % (repr(CA_CERT_RPM_NAME_OSIMAGE), ver, rel, None,
               None,
               " ".join("--requires " + r for r in OSIMAGE_RPM_REQUIRES),
               repr(CA_CERT_RPM_SUMMARY),
               repr(CA_CERT_RPM_SUMMARY),
               repr(update_trust_script), repr(update_trust_script),
               repr(CA_CRT_NAME), repr(cleanupAbsPath(ca_cert))))
    clientRpmName = '%s-%s-%s' % (ca_cert_rpm_osimage, ver, rel)
    print("CA Cert for OS Images: Packaging %s into %s.noarch.rpm" % (ca_cert, clientRpmName))
    _disableRpmMacros()
    gendir(OSIMAGE_RPM_CERTIFICATE_PATH)
    shutil.chown(OSIMAGE_RPM_CERTIFICATE_PATH, "salt", "salt")
    os.chmod(OSIMAGE_RPM_CERTIFICATE_PATH, int("0755", 8))
    cwd = chdir(OSIMAGE_RPM_CERTIFICATE_PATH)
    try:
        ret, out_stream, err_stream = rhn_popen(args)
    except Exception:
        chdir(cwd)
        _reenableRpmMacros()
        raise
    chdir(cwd)
    _reenableRpmMacros()
    out = out_stream.read(); out_stream.close()
    err = err_stream.read(); err_stream.close()
    if ret or not os.path.exists("%s.noarch.rpm" % clientRpmName):
        raise GenCaCertRpmException("CA public SSL certificate RPM generation "
                                "failed:\n%s\n%s" % (out, err))
    os.chmod('%s.noarch.rpm' % clientRpmName, int('0644',8))
    shutil.chown('%s.noarch.rpm' % clientRpmName, "salt", "salt")
    return '%s.noarch.rpm' % clientRpmName