temporalio/temporal · error
cannot specify RootCAFiles and RootCAData at the same time
Error message
cannot specify RootCAFiles and RootCAData at the same time
What it means
Error "cannot specify RootCAFiles and RootCAData at the same time" thrown in temporalio/temporal.
Source
Thrown at common/rpc/encryption/tls_factory.go:144
}
if err := validateCAs(cfg.ClientCAFiles); err != nil {
return fmt.Errorf("invalid ServerTLS.ClientCAFiles: %w", err)
}
if len(cfg.ClientCAFiles) > 0 && len(cfg.ClientCAData) > 0 {
return fmt.Errorf("cannot specify ClientCAFiles and ClientCAData at the same time")
}
return nil
}
func validateClientTLS(cfg *config.ClientTLS) error {
if err := validateCAs(cfg.RootCAData); err != nil {
return fmt.Errorf("invalid ClientTLS.RootCAData: %w", err)
}
if err := validateCAs(cfg.RootCAFiles); err != nil {
return fmt.Errorf("invalid ClientTLS.RootCAFiles: %w", err)
}
if len(cfg.RootCAData) > 0 && len(cfg.RootCAFiles) > 0 {
return fmt.Errorf("cannot specify RootCAFiles and RootCAData at the same time")
}
return nil
}
func validateCAs(cas []string) error {
for _, ca := range cas {
if strings.TrimSpace(ca) == "" {
return fmt.Errorf("CA cannot be empty string")
}
}
return nil
}
View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at common/rpc/encryption/tls_factory.go:144 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/d5e33826b3e47a2e.
Report an issue: GitHub.