Skip to content

Commit

Permalink
Check that paths are set
Browse files Browse the repository at this point in the history
  • Loading branch information
jbemmel committed Dec 17, 2021
1 parent ae0b9bb commit 9f0661b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/tools_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ func signCert(_ *cobra.Command, _ []string) error {
cfssllog.Level = cfssllog.LevelDebug
}

// Check that CA path/key is set
if caCertPath == "" {
return fmt.Errorf("CA cert path not set")
}
if caKeyPath == "" {
return fmt.Errorf("CA key path not set")
}

if path == "" {
path, err = os.Getwd()
if err != nil {
Expand Down

0 comments on commit 9f0661b

Please sign in to comment.