mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
5
cert.go
5
cert.go
@@ -159,6 +159,11 @@ func (m *mkcert) newCA() {
|
|||||||
Subject: pkix.Name{
|
Subject: pkix.Name{
|
||||||
Organization: []string{"mkcert development CA"},
|
Organization: []string{"mkcert development CA"},
|
||||||
OrganizationalUnit: []string{userAndHostname},
|
OrganizationalUnit: []string{userAndHostname},
|
||||||
|
|
||||||
|
// The CommonName is required by iOS to show the certificate in the
|
||||||
|
// "Certificate Trust Settings" menu.
|
||||||
|
// https://github.com/FiloSottile/mkcert/issues/47
|
||||||
|
CommonName: "mkcert " + userAndHostname,
|
||||||
},
|
},
|
||||||
SubjectKeyId: skid[:],
|
SubjectKeyId: skid[:],
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user