Commit 5e30115e authored by Loïck Bonniot's avatar Loïck Bonniot

[auth] Ignore hostname verification in tls

parent b4a38fa9
Pipeline #321 passed with stage
......@@ -63,6 +63,7 @@ func GetCertificate(days int, serial uint64, req *x509.CertificateRequest, paren
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(0, 0, days),
IsCA: false,
DNSNames: []string{"*"},
}
der, err := x509.CreateCertificate(rand.Reader, template, parent, req.PublicKey, key)
......@@ -95,7 +96,8 @@ func GetSelfSignedCertificate(days int, serial uint64, country, organization, un
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(0, 0, days),
BasicConstraintsValid: true,
IsCA: true,
IsCA: true,
DNSNames: []string{"*"},
}
der, err := x509.CreateCertificate(rand.Reader, template, template, &key.PublicKey, key)
......
......@@ -27,7 +27,7 @@ func startPlatform(tmpDir string) (*exec.Cmd, []byte, error) {
}
// Init
cmd := exec.Command(path, "-cn", "localhost", "-path", dir, "-v", "init")
cmd := exec.Command(path, "-path", dir, "-v", "init")
err = cmd.Run()
if err != nil {
return nil, nil, err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment