Skip to content
This repository
Browse code

Added :trust-all? option to run-jetty

  • Loading branch information...
commit 00bb43e69c6987488606221880050ce2aa555f9d 1 parent 19287f8
James Reeves weavejester authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 ring-jetty-adapter/src/ring/adapter/jetty.clj
6 ring-jetty-adapter/src/ring/adapter/jetty.clj
@@ -26,6 +26,7 @@
26 26 (let [context (SslContextFactory.)]
27 27 (.setKeyStorePath context (options :keystore))
28 28 (.setKeyStorePassword context (options :key-password))
  29 + (.setTrustAll context (boolean (options :trust-all?)))
29 30 (when (options :truststore)
30 31 (.setTruststore context (options :truststore)))
31 32 (when (options :trust-password)
@@ -71,8 +72,9 @@
71 72 :truststore - a truststore to use for SSL connections
72 73 :trust-password - the password to the truststore
73 74 :max-threads - the maximum number of threads to use (default 250)
74   - :client-auth - SSL client certificate authenticate, may be set to :need,
75   - :want or :none (defaults to :none)"
  75 + :client-auth - SSL client certificate authentication; may be set to :need,
  76 + :want or :none (defaults to :none)
  77 + :trust-all? - set to true to accept all client certificates"
76 78 [handler options]
77 79 (let [^Server s (create-server (dissoc options :configurator))]
78 80 (when-let [configurator (:configurator options)]

0 comments on commit 00bb43e

Please sign in to comment.
Something went wrong with that request. Please try again.