                         (.setSecureScheme "https")
                         (.setSecurePort ssl-port)
                         (.addCustomizer (SecureRequestCustomizer.))))
-        ssl-factory  (SslConnectionFactory.
-                      (ssl-context-factory options)
-                      "http/1.1")]
+        ssl-context  (ssl-context-factory options)
+        ssl-factory  (SslConnectionFactory. ssl-context "http/1.1")]
+    (when-let [scan-interval (options :keystore-scan-interval)]
+      (.addBean server (doto (KeyStoreScanner. ssl-context)
+                         (.setScanInterval scan-interval))))
     (doto (server-connector server ssl-factory http-factory)
       (.setPort ssl-port)
       (.setHost (options :host))

  :keystore             - the keystore to use for SSL connections
  :keystore-type        - the keystore type (default jks)
  :key-password         - the password to the keystore
  :truststore           - a truststore to use for SSL connections
  :trust-password       - the password to the truststore
  :max-threads          - the maximum number of threads to use (default 50)

           [org.eclipse.jetty.server.handler AbstractHandler]
           [org.eclipse.jetty.util BlockingArrayQueue]
           [org.eclipse.jetty.util.thread ThreadPool QueuedThreadPool]
           [org.eclipse.jetty.util.ssl SslContextFactory$Server KeyStoreScanner]
           [javax.servlet AsyncContext DispatcherType AsyncEvent AsyncListener]
           [javax.servlet.http HttpServletRequest HttpServletResponse]))

