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

Add CommonName to the self signed certificate
This commit is contained in:
无闻 2015-07-25 00:29:31 +08:00
commit 6272986192
1 changed files with 1 additions and 0 deletions

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,