Add user@hostname to the OU, and set NotBefore to now

This will help figuring out where and when a certificate was created.

Fixes #31
This commit is contained in:
Filippo Valsorda
2018-07-03 19:52:18 -04:00
parent bf29b706fc
commit bf4af2d977
2 changed files with 20 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ func (m *mkcert) installPlatform() {
_, err = plist.Unmarshal(plistData, &plistRoot)
fatalIfErr(err, "failed to parse trust settings")
rootSubjectASN1, _ := asn1.Marshal(rootSubject.ToRDNSequence())
rootSubjectASN1, _ := asn1.Marshal(m.caCert.Subject.ToRDNSequence())
if plistRoot["trustVersion"].(uint64) != 1 {
log.Fatalln("ERROR: unsupported trust settings version:", plistRoot["trustVersion"])