mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09: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:
		| @@ -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, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user