Selaa lähdekoodia

Merge pull request #1358 from nice-software/wip/certCommonName

Add CommonName to the self signed certificate
无闻 9 vuotta sitten
vanhempi
commit
6272986192
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      cmd/cert.go

+ 1 - 0
cmd/cert.go

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