From 9e9563535ec66d65e984fe4d93d9025cb3abb5ab Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Tue, 5 Feb 2019 14:19:51 -0500 Subject: [PATCH] Add a -client suffix to filenames when generating client certificates --- cert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cert.go b/cert.go index b85829d..b3c8e82 100644 --- a/cert.go +++ b/cert.go @@ -149,6 +149,9 @@ func (m *mkcert) fileNames(hosts []string) (certFile, keyFile, p12File string) { if len(hosts) > 1 { defaultName += "+" + strconv.Itoa(len(hosts)-1) } + if m.client { + defaultName += "-client" + } certFile = "./" + defaultName + ".pem" if m.certFile != "" {