Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
remove jar as option, fix switch case
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jan 18, 2021
1 parent 4b5506f commit 2ca74f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/keyaliases/crtka.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ var CreateCmd = &cobra.Command{
switch format {
case "pem":
fileformat = "pem"
format = "keycertfile"
case "pkcs12":
fileformat = "pfx"
case "jar":
fileformat = "jar"
format = "pkcs12"
default:
return fmt.Errorf("invalid foramt key alias for %s", format)
}
Expand All @@ -62,9 +62,9 @@ func init() {
CreateCmd.Flags().StringVarP(&keystoreName, "key", "k",
"", "Name of the key store")
CreateCmd.Flags().StringVarP(&name, "alias", "s",
"", "Name of the key alias file. File name of pem, jar or pfx file. Do not add the extension")
"", "Name of the key alias file. File name of pem or pfx file. Do not add the extension")
CreateCmd.Flags().StringVarP(&format, "format", "f",
"", "Format of the certificate")
"", "Format of the certificate; pem or pfx")
CreateCmd.Flags().StringVarP(&password, "password", "p",
"", "PKCS12 password")
CreateCmd.Flags().BoolVarP(&ignoreExpiry, "exp", "x",
Expand Down

0 comments on commit 2ca74f2

Please sign in to comment.