From 6a316b3e37e284e64ddb478d882066357deb82d3 Mon Sep 17 00:00:00 2001 From: Kurt Kanaskie Date: Tue, 19 Sep 2023 11:33:26 -0400 Subject: [PATCH] Issue 288, keeping pem for backward compatibility. --- cmd/keyaliases/crtka.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/keyaliases/crtka.go b/cmd/keyaliases/crtka.go index aaaeba247..6350bb83f 100644 --- a/cmd/keyaliases/crtka.go +++ b/cmd/keyaliases/crtka.go @@ -58,6 +58,8 @@ var CreateCmd = &cobra.Command{ ignoreExpiry, ignoreNewLine, selfFile) + case "pem": + fallthrough case "keycertfile": _, err = keyaliases.CreateOrUpdateKeyCert(keystoreName, name, @@ -93,7 +95,7 @@ func init() { CreateCmd.Flags().StringVarP(&name, "alias", "s", "", "Name of the key alias") CreateCmd.Flags().StringVarP(&format, "format", "f", - "", "Format of the certificate; selfsignedcert, keycertfile or pkcs12 (file extn is .pfx)") + "", "Format of the certificate; selfsignedcert, keycertfile (a.k.a pem), or pkcs12 (file extn is .pfx)") CreateCmd.Flags().StringVarP(&password, "password", "p", "", "PKCS12 password") CreateCmd.Flags().BoolVarP(&ignoreExpiry, "exp", "x",