diff --git a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java index 9d1eea874ea..2f7877cd3ce 100644 --- a/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java +++ b/jetty-start/src/main/java/org/eclipse/jetty/start/Main.java @@ -459,13 +459,6 @@ public class Main // Setup Start / Stop Monitoring startMonitor(); - // Add mandatory options for secure mode - if (_secure) - { - _config.addActiveOption("secure"); - _config.addActiveOption("security"); - } - // Default XMLs (if not specified) if (xmls.isEmpty()) { @@ -481,6 +474,13 @@ public class Main // Initialize the Config (start.config) initConfig(xmls); + // Add mandatory options for secure mode + if (_secure) + { + _config.addActiveOption("secure"); + _config.addActiveOption("security"); + } + // Normalize the XML config options passed on the command line. xmls = resolveXmlConfigs(xmls);