From bc51e8da7861e6a9744ede3b78c6898d20849d9c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 24 Oct 2024 19:21:44 +0200 Subject: [PATCH] Add optional [domain] description in help text for --gen-x509 Signed-off-by: DL6ER --- src/args.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/args.c b/src/args.c index 4e29102e4..dcc9faeee 100644 --- a/src/args.c +++ b/src/args.c @@ -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");