Skip to content

Commit

Permalink
Add optional [domain] description in help text for --gen-x509
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Oct 24, 2024
1 parent 8a95ce5 commit bc51e8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,10 @@ void parse_args(int argc, char *argv[])
printf(" By default, this new certificate is based on the elliptic\n");
printf(" curve secp521r1. If the optional flag %s[rsa]%s is specified,\n", purple, normal);
printf(" an RSA (4096 bit) key will be generated instead.\n\n");
printf(" Usage: %spihole-FTL --gen-x509 %soutfile %s[rsa]%s\n\n", green, cyan, purple, normal);
printf(" An optional %s[domain]%s can be given to specify the domain\n", blue, normal);
printf(" for which the certificate is valid. If omitted, the domain\n");
printf(" is set to %spi.hole%s.\n\n", blue, normal);
printf(" Usage: %spihole-FTL --gen-x509 %soutfile %s[domain] %s[rsa]%s\n\n", green, cyan, blue, purple, normal);

printf("%sTLS X.509 certificate parser:%s\n", yellow, normal);
printf(" Parse the given X.509 certificate and optionally check if\n");
Expand Down

0 comments on commit bc51e8d

Please sign in to comment.