Browse Source

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

Add CommonName to the self signed certificate
for-closed-social
无闻 9 years ago
parent
commit
6272986192
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      cmd/cert.go

+ 1
- 0
cmd/cert.go View File

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

Loading…
Cancel
Save