Browse Source

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
tags/v1.2.0-rc1
Paolo Borelli 10 years ago
parent
commit
a6c06d22bb
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,
Subject: pkix.Name{
Organization: []string{"Acme Co"},
CommonName: "Gogs",
},
NotBefore: notBefore,
NotAfter: notAfter,


Loading…
Cancel
Save