Skip to content

Commit

Permalink
Drop codeSigning EKU from certificates with email SANs
Browse files Browse the repository at this point in the history
Unclear how those are correlated.
If it breaks something we can put it back.

Fixes FiloSottile#303
  • Loading branch information
FiloSottile committed Oct 27, 2020
1 parent c12e242 commit 9f583c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (m *mkcert) makeCert(hosts []string) {
tpl.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}
}
if len(tpl.EmailAddresses) > 0 {
tpl.ExtKeyUsage = append(tpl.ExtKeyUsage, x509.ExtKeyUsageCodeSigning, x509.ExtKeyUsageEmailProtection)
tpl.ExtKeyUsage = append(tpl.ExtKeyUsage, x509.ExtKeyUsageEmailProtection)
}

// IIS (the main target of PKCS #12 files), only shows the deprecated
Expand Down

0 comments on commit 9f583c6

Please sign in to comment.