summaryrefslogtreecommitdiffstats
path: root/cmd/cert.go
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2015-06-05 19:52:00 +0200
committerPaolo Borelli <pborelli@gnome.org>2015-07-11 10:34:25 +0200
commite94ca36335cbfc5678520fed7325ddcde279b507 (patch)
treea42cd82007d0d21c1e6e7e2e9de7d44b20c5c341 /cmd/cert.go
parentced212f8fa6e4761bca0c635240e8147ae427435 (diff)
downloadgitea-e94ca36335cbfc5678520fed7325ddcde279b507.tar.gz
gitea-e94ca36335cbfc5678520fed7325ddcde279b507.zip
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
Diffstat (limited to 'cmd/cert.go')
-rw-r--r--cmd/cert.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index 631c4c6823..0a09b00344 100644
--- a/cmd/cert.go
+++ b/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,