Include DNS alt name in certificate

Closes: #2664
This commit is contained in:
Alessio Treglia 2018-11-02 08:17:57 +00:00
parent f4d3e65ef0
commit 91dcd0f82a
No known key found for this signature in database
GPG Key ID: E8A48AE5311D765A
1 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ func generateSelfSignedCert(host string) (certBytes []byte, priv *ecdsa.PrivateK
Subject: pkix.Name{
Organization: []string{"Gaia Lite"},
},
DNSNames: []string{"localhost"},
NotBefore: notBefore,
NotAfter: notAfter,
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,