diff --git a/pkg/cli/cert/cert.go b/pkg/cli/cert/cert.go index 30a73f7028..ebe36fc441 100644 --- a/pkg/cli/cert/cert.go +++ b/pkg/cli/cert/cert.go @@ -293,7 +293,7 @@ func rotateCA(app *cli.Context, cfg *cmds.Server, sync *cmds.CertRotateCA) error // Set up dummy server config for reading new bootstrap data from disk. tmpServer := &config.Control{ Runtime: config.NewRuntime(nil), - DataDir: filepath.Dir(sync.CACertPath), + DataDir: sync.CACertPath, } deps.CreateRuntimeCertFiles(tmpServer)