Skip to content
Snippets Groups Projects
Commit 5e30115e authored by Loïck Bonniot's avatar Loïck Bonniot
Browse files

[auth] Ignore hostname verification in tls

parent b4a38fa9
No related branches found
No related tags found
1 merge request!34[auth] Ignore hostname verification in tls
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment