Commit 23d98cec authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Fix CACertPath stripping trailing path components

parent 0c302f43
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment