def METHOD_NAME(master_config, channel_minion_id):
    minion_conf = salt.config.METHOD_NAME(
        "", minion_id=channel_minion_id, cache_minion_id=False
    )
    minion_conf["transport"] = master_config["transport"]
    minion_conf["root_dir"] = master_config["root_dir"]
    minion_conf["id"] = channel_minion_id
    minion_conf["sock_dir"] = master_config["sock_dir"]
    minion_conf["ret_port"] = master_config["ret_port"]
    minion_conf["interface"] = "127.0.0.1"
    minion_conf["pki_dir"] = os.path.join(master_config["root_dir"], "pki_minion")
    os.makedirs(minion_conf["pki_dir"])
    minion_conf["master_port"] = master_config["ret_port"]
    minion_conf["master_ip"] = "127.0.0.1"
    minion_conf["master_uri"] = "tcp://127.0.0.1:{}".format(master_config["ret_port"])
    salt.crypt.gen_keys(minion_conf["pki_dir"], "minion", 4096)
    minion_pub = os.path.join(minion_conf["pki_dir"], "minion.pub")
    pub_on_master = os.path.join(master_config["pki_dir"], "minions", channel_minion_id)
    shutil.copyfile(minion_pub, pub_on_master)
    return minion_conf