public X509CertificateBuilder setBasicConstraints(boolean isCritical, boolean isCertAuthorityCertificate) {
        this.basicConstraintsExtension = new BasicConstraintsExtension(isCritical, isCertAuthorityCertificate);
        return this;
    }
@return generates a cryptographically secure positive serial number up to 128 bits
security-utils/src/main/java/com/yahoo/security/X509CertificateBuilder.java