#!/bin/bash set -euo pipefail upsert_config_entry primary ' kind = "api-gateway" name = "api-gateway" listeners = [ { name = "listener-one" port = 9999 protocol = "tcp" tls = { certificates = [ { kind = "inline-certificate" name = "host-consul-example" } ] } }, { name = "listener-two" port = 9998 protocol = "tcp" tls = { certificates = [ { kind = "inline-certificate" name = "host-consul-example" }, { kind = "inline-certificate" name = "also-host-consul-example" }, { kind = "inline-certificate" name = "other-consul-example" } ] } } ] ' upsert_config_entry primary ' kind = "inline-certificate" name = "host-consul-example" private_key = <