Add a CommonName field to the CA to work-around iOS UI bug

Fixes #47
This commit is contained in:
Filippo Valsorda
2018-07-30 03:15:25 +02:00
parent 9e258bad93
commit 676d4cdf6b

View File

@@ -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[:],