Skip to content

Commit

Permalink
fix error msg for spec checking
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Jun 11, 2024
1 parent a8e39e9 commit 442b7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certtools/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func verifyExistingKey(file string, existingKey crypto.PrivateKey, newkey string
specs := strings.Split(newkey, ":")

if len(specs) != 2 {
return nil, fmt.Errorf("invalid new key spec, got: %s, need: missing <[EC|RSA]]>:<[BitSize|Curve]>", newkey)
return nil, fmt.Errorf("invalid new key spec, got: %s, need format of: <[EC|RSA]]>:<[BitSize|Curve]>", newkey)
}

switch t := existingKey.(type) {
Expand Down

0 comments on commit 442b7bc

Please sign in to comment.