Add localhost to DNSNames in generated certificate.

This commit is contained in:
David Hill 2013-11-19 12:02:40 -05:00
parent e433439308
commit 6fcc1c9d1b

View file

@ -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 {