From 442b7bc2e470a04300e8e13aa82fd4da270020d8 Mon Sep 17 00:00:00 2001 From: Andrew Martinez Date: Tue, 11 Jun 2024 10:17:46 -0400 Subject: [PATCH] fix error msg for spec checking --- certtools/keys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certtools/keys.go b/certtools/keys.go index 57731bf..b38d7ba 100644 --- a/certtools/keys.go +++ b/certtools/keys.go @@ -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) {