From 5623f422444001c9e6f348409cadb05d68272db0 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Tue, 26 Jun 2018 01:56:48 -0400 Subject: [PATCH] Prevent IPv6 certs from ending up with hidden filenames --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e471ce8..0e766b5 100644 --- a/main.go +++ b/main.go @@ -152,7 +152,7 @@ func (m *mkcert) makeCert(hosts []string) { cert, err := x509.CreateCertificate(rand.Reader, tpl, m.caCert, &pub, m.caKey) fatalIfErr(err, "failed to generate certificate") - filename := strings.Replace(hosts[0], ":", ".", -1) + filename := strings.Replace(hosts[0], ":", "_", -1) if len(hosts) > 1 { filename += "+" + strconv.Itoa(len(hosts)-1) }