Skip to content

Commit

Permalink
Padronizar o nome da função de geração de chave privada.
Browse files Browse the repository at this point in the history
  • Loading branch information
beppler committed Jan 24, 2023
1 parent dccba74 commit edf6de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simpleca.go
Expand Up @@ -137,7 +137,7 @@ func main() {
Usage: "RSA private key output file `NAME`",
},
},
Action: genKey,
Action: createKey,
},
{
Name: "pkcs",
Expand Down Expand Up @@ -354,7 +354,7 @@ func main() {
}
}

func genKey(c *cli.Context) error {
func createKey(c *cli.Context) error {
size := c.Int("size")
if size < 1024 {
return fmt.Errorf("key size must be at least 1024 bits")
Expand Down

0 comments on commit edf6de8

Please sign in to comment.