From 23d98cec227eb1ade3ec0f0a7045993cbbc84531 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Mon, 13 Feb 2023 22:43:22 +0000 Subject: [PATCH] Fix CACertPath stripping trailing path components Signed-off-by: Brad Davidson --- pkg/cli/cert/cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)