Fix BasicConstraints for test EE certs
@@ -339,7 +339,7 @@ public static X509Certificate generateEndEntityCert(PublicKey entityKey, X500Nam
new GeneralNames(new GeneralName(caCertLw.getIssuer())),
caCertLw.getSerialNumber().getValue()));
extGen.addExtension(Extension.subjectKeyIdentifier, false, new SubjectKeyIdentifier(getDigest(entityKey.getEncoded())));
- extGen.addExtension(Extension.basicConstraints, true, new BasicConstraints(0));
+ extGen.addExtension(Extension.basicConstraints, true, new BasicConstraints(false));
extGen.addExtension(Extension.keyUsage, true, new KeyUsage(keyUsage));
if (entityKey.getAlgorithm().equals("RSA"))
