From c33e4051cd026da6884277ed77ed2f241e398637 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Mon, 23 Feb 2015 16:49:22 +0000
Subject: [PATCH] OPENDJ-1839 Fix bug introduced by cleanup

---
 opendj-server-legacy/src/main/java/org/opends/quicksetup/SecurityOptions.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/SecurityOptions.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/SecurityOptions.java
index 5029c3e..f3283dd 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/SecurityOptions.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/SecurityOptions.java
@@ -256,6 +256,11 @@
   public static SecurityOptions createOptionsForCertificatType(CertificateType certType, String keystorePath,
       String keystorePwd, boolean enableSSL, boolean enableStartTLS, int sslPort, String aliasToUse)
   {
+      if (certType == CertificateType.NO_CERTIFICATE)
+      {
+        return createNoCertificateOptions();
+      }
+
       SecurityOptions ops = new SecurityOptions();
       if (keystorePath != null)
       {

--
Gitblit v1.10.0