diff --git a/agent/consul/config.go b/agent/consul/config.go index 94c8bc06a..6f9410c4b 100644 --- a/agent/consul/config.go +++ b/agent/consul/config.go @@ -435,15 +435,6 @@ func DefaultConfig() *Config { ServerHealthInterval: 2 * time.Second, AutopilotInterval: 10 * time.Second, - - CAConfig: &structs.CAConfiguration{ - Provider: "consul", - Config: map[string]interface{}{ - "PrivateKey": "", - "RootCert": "", - "RotationPeriod": 90 * 24 * time.Hour, - }, - }, } // Increase our reap interval to 3 days instead of 24h. diff --git a/agent/consul/server_test.go b/agent/consul/server_test.go index 0359c847f..43dcd13ff 100644 --- a/agent/consul/server_test.go +++ b/agent/consul/server_test.go @@ -97,6 +97,11 @@ func testServerConfig(t *testing.T) (string, *Config) { config.CAConfig = &structs.CAConfiguration{ ClusterID: connect.TestClusterID, Provider: structs.ConsulCAProvider, + Config: map[string]interface{}{ + "PrivateKey": "", + "RootCert": "", + "RotationPeriod": 90 * 24 * time.Hour, + }, } return dir, config