0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 10:09:06 +02:00

Add CommonName to the self signed certificate

Without a CN the self signed certificate is considered
invalid by chrome.
You can check with: openssl x509 -in cert.pem -subject -noout
This commit is contained in:
Paolo Borelli 2015-06-05 19:52:00 +02:00
parent ced212f8fa
commit e94ca36335

View file

@ -114,6 +114,7 @@ func runCert(ctx *cli.Context) {
SerialNumber: serialNumber,
Subject: pkix.Name{
Organization: []string{"Acme Co"},
CommonName: "Gogs",
},
NotBefore: notBefore,
NotAfter: notAfter,