mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-13 16:31:41 +08:00
Drop codeSigning EKU from certificates with email SANs
Unclear how those are correlated. If it breaks something we can put it back. Fixes #303
This commit is contained in:
2
cert.go
2
cert.go
@@ -93,7 +93,7 @@ func (m *mkcert) makeCert(hosts []string) {
|
|||||||
tpl.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}
|
tpl.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}
|
||||||
}
|
}
|
||||||
if len(tpl.EmailAddresses) > 0 {
|
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
|
// IIS (the main target of PKCS #12 files), only shows the deprecated
|
||||||
|
Reference in New Issue
Block a user