diff --git a/lib/service/connect.go b/lib/service/connect.go index 40644a73763ee..fcf4122e44f58 100644 --- a/lib/service/connect.go +++ b/lib/service/connect.go @@ -1215,7 +1215,9 @@ func (process *TeleportProcess) newClientThroughTunnel(tlsConfig *tls.Config, ss ClientConfig: sshConfig, Log: process.logger, InsecureSkipTLSVerify: lib.IsInsecureDevMode(), - GetClusterCAs: apiclient.ClusterCAsFromCertPool(tlsConfig.RootCAs), + GetClusterCAs: func(context.Context) (*x509.CertPool, error) { + return getClusterCAs() + }, }) if err != nil { return nil, nil, trace.Wrap(err)