Skip to content

Commit 0565421

Browse files
committed
Small semantic patch
1 parent 7a185b3 commit 0565421

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cmd/key.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ var (
1818
Long: `Generate a public-private key-pair for a Pelican server.
1919
The private key is an ECDSA key with P256 curve. The corresponding public key
2020
is a JSON Web Key Set (JWKS), which can be used for JWT signature verification.`,
21-
RunE: keygenMain,
22-
// Note: no new tests are needed for this new command, because it reuses the `keygenMain` function,
23-
// which is already tested in `pelican/cmd/generate_keygen_test.go`.
21+
RunE: keygenMain,
2422
SilenceUsage: true,
2523
}
2624
)
@@ -29,6 +27,6 @@ func init() {
2927
keyCmd.AddCommand(keyCreateCmd)
3028

3129
// Attach flags to the `create` sub-command
32-
keyCreateCmd.Flags().StringVar(&privateKeyPath, "private-key", "./private-key.pem", "The file path where the generated private key will be saved.")
30+
keyCreateCmd.Flags().StringVar(&privateKeyPath, "private-key", "./private-key.pem", "The file path where the generated private key will be saved. If a key already exists at the provided path, it will not be overwritten but will be used to derive a public key")
3331
keyCreateCmd.Flags().StringVar(&publicKeyPath, "public-key", "./issuer-pub.jwks", "The file path where the generated public key (derived from the generated private key) will be saved.")
3432
}

0 commit comments

Comments
 (0)