cert: define ExtendedKeyUsage as required by macOS 10.15

This commit is contained in:
Oliver Gugger 2020-04-17 09:22:32 +02:00
parent eec3799da9
commit 8920e20cf7
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -228,6 +228,7 @@ func GenCertPair(org, certFile, keyFile string, tlsExtraIPs,
KeyUsage: x509.KeyUsageKeyEncipherment | KeyUsage: x509.KeyUsageKeyEncipherment |
x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
IsCA: true, // so can sign self. IsCA: true, // so can sign self.
BasicConstraintsValid: true, BasicConstraintsValid: true,