소스 검색

Drop codeSigning EKU from certificates with email SANs

Unclear how those are correlated.
If it breaks something we can put it back.

Fixes #303
Filippo Valsorda 4 년 전
부모
커밋
9f583c670f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cert.go

+ 1 - 1
cert.go

@@ -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