cert: define ExtendedKeyUsage as required by macOS 10.15

This commit is contained in:
Oliver Gugger committed 2020-04-17 09:22:32 +02:00
1 parent eec3799da9
commit 8920e20cf7
1 file changed
+1
+1
View File
@@ -228,6 +228,7 @@ func GenCertPair(org, certFile, keyFile string, tlsExtraIPs,
KeyUsage: x509.KeyUsageKeyEncipherment |
x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
IsCA: true, // so can sign self.
BasicConstraintsValid: true,