Skip to content

Commit

Permalink
add CN to generated certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
elexx committed Jan 16, 2023
1 parent 2a46726 commit 49fec4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func (m *mkcert) makeCert(hosts []string) {
tpl := &x509.Certificate{
SerialNumber: randomSerialNumber(),
Subject: pkix.Name{
CommonName: hosts[0],
Organization: []string{"mkcert development certificate"},
OrganizationalUnit: []string{userAndHostname},
},
Expand Down

0 comments on commit 49fec4a

Please sign in to comment.