mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 04:05:42 +01:00
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
This commit is contained in:
parent
ced212f8fa
commit
e94ca36335
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue