cert: define ExtendedKeyUsage as required by macOS 10.15
This commit is contained in:
parent
eec3799da9
commit
8920e20cf7
@ -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,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user