From 09a5cb6177edf1f509fdd1f474f062d7d89a5360 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 10 Oct 2024 15:16:24 +0200 Subject: [PATCH] =?UTF-8?q?describe=20in=20help=20how=20cert=E2=80=99s=20c?= =?UTF-8?q?ommon=20name=20is=20determined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the current implemented algorithm might be the obvious solution to choose, I think adding these precise additions can aid users requiring the common name of server & client certificates to be set correctly. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 591bf4f..9260d64 100644 --- a/main.go +++ b/main.go @@ -315,8 +315,8 @@ func main2() error { var caKey = flag.String("ca-key", "minica-key.pem", "Root private key filename, PEM encoded.") var caCert = flag.String("ca-cert", "minica.pem", "Root certificate filename, PEM encoded.") var caAlg = flag.String("ca-alg", "ecdsa", "Algorithm for any new keypairs: RSA or ECDSA.") - var domains = flag.String("domains", "", "Comma separated domain names to include as Server Alternative Names.") - var ipAddresses = flag.String("ip-addresses", "", "Comma separated IP addresses to include as Server Alternative Names.") + var domains = flag.String("domains", "", "Comma separated domain names to include as Server Alternative Names. The first domain is also used as the common name.") + var ipAddresses = flag.String("ip-addresses", "", "Comma separated IP addresses to include as Server Alternative Names. In case no domains are set, the first IP is used as the common name.") flag.Usage = func() { fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]) fmt.Fprintf(os.Stderr, `