mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Yuriy Movchan
29.57.2022 a9bbf17ba3b41d3940efaeb98caf4da2ef344f23
opendj-server-legacy/src/main/java/org/opends/server/tools/InstallDSArgumentParser.java
@@ -79,6 +79,7 @@
  BooleanArgument   generateSelfSignedCertificateArg;
  StringArgument    hostNameArg;
  BooleanArgument   usePkcs11Arg;
  StringArgument   useBcfksArg;
  private FileBasedArgument directoryManagerPwdFileArg;
  private FileBasedArgument keyStorePasswordFileArg;
  IntegerArgument   ldapPortArg;
@@ -342,6 +343,13 @@
                    .buildArgument();
    addArgument(usePkcs11Arg);
    useBcfksArg =
         StringArgument.builder("useBcfksKeystore")
                    .description(INFO_INSTALLDS_DESCRIPTION_USE_BCFKS.get())
                    .valuePlaceholder(INFO_KEYSTOREPATH_PLACEHOLDER.get())
                    .buildArgument();
    addArgument(useBcfksArg);
    useJavaKeyStoreArg =
            StringArgument.builder("useJavaKeystore")
                    .description(INFO_INSTALLDS_DESCRIPTION_USE_JAVAKEYSTORE.get())
@@ -611,6 +619,10 @@
    {
      certificateType++;
    }
    if (useBcfksArg.isPresent())
    {
      certificateType++;
    }
    if (certificateType > 1)
    {