gRPC Swift transport security certs and server override

I'm trying to setup a gRPC client which requires a security certificate and a server override. The information I've found isn't lining up with the version of gRPC I's using. (grpc-swift-2 2.4.1, grpc-swift-nio-transport 2.7.0). So I'm wondering if anyone has experience with this.

This is how I'm setting up my transport. My understanding is the cert and server override are assigned as part of the .tls value? I found examples for doing that, but they don't line up with what is actually available with .tls. I'm assuming I'm looking at out of date information, but haven't found the correct information.

let transport = try HTTP2ClientTransport.Posix(
    target: .dns(host: targetHost, port: 50051),
    transportSecurity: .tls
)

.tls gives you the defaults, but you can also provide a closure to it to change any of the default values:

.tls { tlsConfig in 
  // (modify tls config as necessary)
}

This is just shorthand for getting the TLS config type and modifying it directly:

var tlsConfig: HTTP2ClientTransport.Posix.TransportSecurity.TLS = .defaults
// (modify tls config as necessary)

let transport = try HTTP2ClientTransport.Posix(
    target: .dns(host: targetHost, port: 50051),
    transportSecurity: .tls(tlsConfig)
)

Was that the API you were referring to?