I am looking for guidance on the proper way to make Ziti use a new SNI hostname.
After updating the advertise hostname in the router configuration, the router fails to start. I modified the configuration as follows:
listeners:
- binding: transport
bind: tls:0.0.0.0:port
- advertise: tls:hostname.domain.org:port
+ advertise: tls:hostname_new.domain.org:port
options:
outQueueSize: 4
groups:
@@ -50,7 +50,7 @@ listeners:
- binding: edge
address: tls:0.0.0.0:port
options:
- advertise: hostname.domain.org:port
+ advertise: hostname_new.domain.org:port
connectTimeoutMs: 5000
getSessionTimeout: 60
Apr 09 19:28:03 hostname ziti[2483479]: {
"file":"github.com/openziti/ziti/router/env/config.go:925","func":"github.com/openziti/ziti/router/env.LoadConfigWithOptions",
"level":"fatal",
"msg":"one or more advertise addresses are invalid:
[invalid link.listeners.advertise: tls:hostname51.domain.org:port,
error: identity is not valid for provided host: [hostname_new.domain.org]. is valid for: [127.0.0.1, ::1, localhost, hostname, hostname.domain.org] invalid listeners.binding.advertise: hostname_new.domain.org:port,
error: identity is not valid for provided host: [hostname_new.domain.org]. is valid for: [127.0.0.1, ::1, localhost, hostname, hostname.domain.org]]",
"time":"2026-04-09T19:28:03.548Z"
}