~gsthnz/satellite

35ff8ae391277cac214257f2c9210ba772daca03 — Gustavo Heinz 3 years ago 708d514
Do not use hardcoded address on DNSName
1 files changed, 1 insertions(+), 1 deletions(-)

M tls.go
M tls.go => tls.go +1 -1
@@ 107,7 107,7 @@ func generateX509KeyPair(certPath, keyPath, domain string, validFor int) error {
		CommonName: domain,
	}

	template.DNSNames = append(template.DNSNames, "localhost")
	template.DNSNames = append(template.DNSNames, domain)

	derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, pub, priv)
	if err != nil {