mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-13 16:31:41 +08:00
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:
@@ -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"])
|
||||
|
Reference in New Issue
Block a user