From 6fcc1c9d1bdea65fe74431811fd72f0275bb9d63 Mon Sep 17 00:00:00 2001 From: David Hill Date: Tue, 19 Nov 2013 12:02:40 -0500 Subject: [PATCH] Add localhost to DNSNames in generated certificate. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index d1e7bde8..7ac6fded 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -357,7 +357,7 @@ func genKey(key, cert string) error { if err != nil { return err } - template.DNSNames = append(template.DNSNames, host) + template.DNSNames = append(template.DNSNames, host, "localhost") addrs, err := net.InterfaceAddrs() if err != nil {