Skip to content

Commit

Permalink
Merge pull request #289 from kurtkanaskie/issue288
Browse files Browse the repository at this point in the history
Fix for issues #287 and #288
  • Loading branch information
ssvaidyanathan authored Sep 19, 2023
2 parents f50e88a + fbf5074 commit 8991204
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/keyaliases/crtka.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var CreateCmd = &cobra.Command{
ignoreExpiry,
ignoreNewLine,
selfFile)
case "pem":
case "keycertfile", "pem":
_, err = keyaliases.CreateOrUpdateKeyCert(keystoreName,
name,
false,
Expand Down Expand Up @@ -93,7 +93,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, pem 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",
Expand Down
2 changes: 1 addition & 1 deletion cmd/keyaliases/csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func init() {
CsrCmd.Flags().StringVarP(&keystoreName, "key", "k",
"", "Name of the key store")
CsrCmd.Flags().StringVarP(&aliasName, "alias", "s",
"", "Name of the key store")
"", "Name of the key alias")

_ = CsrCmd.MarkFlagRequired("alias")
_ = CsrCmd.MarkFlagRequired("key")
Expand Down
2 changes: 1 addition & 1 deletion cmd/keyaliases/getcert.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func init() {
GetctCmd.Flags().StringVarP(&keystoreName, "key", "k",
"", "Name of the key store")
GetctCmd.Flags().StringVarP(&aliasName, "alias", "s",
"", "Name of the key store")
"", "Name of the key alias")

_ = GetctCmd.MarkFlagRequired("alias")
_ = GetctCmd.MarkFlagRequired("key")
Expand Down
3 changes: 1 addition & 2 deletions cmd/keyaliases/getka.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ var GetCmd = &cobra.Command{
func init() {
GetCmd.Flags().StringVarP(&keystoreName, "key", "k",
"", "Name of the key store")

GetCmd.Flags().StringVarP(&aliasName, "alias", "s",
"", "Name of the key store")
"", "Name of the key alias")

_ = GetCmd.MarkFlagRequired("alias")
_ = GetCmd.MarkFlagRequired("key")
Expand Down
2 changes: 1 addition & 1 deletion cmd/keystores/impks.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (

func init() {
ImpCmd.Flags().StringVarP(&filePath, "file", "f",
"", "File containing API Products")
"", "File containing keystores")
ImpCmd.Flags().IntVarP(&conn, "conn", "c",
4, "Number of connections")

Expand Down

0 comments on commit 8991204

Please sign in to comment.