Add localhost to DNSNames in generated certificate.
This commit is contained in:
parent
e433439308
commit
6fcc1c9d1b
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ func genKey(key, cert string) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
template.DNSNames = append(template.DNSNames, host)
|
template.DNSNames = append(template.DNSNames, host, "localhost")
|
||||||
|
|
||||||
addrs, err := net.InterfaceAddrs()
|
addrs, err := net.InterfaceAddrs()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue