You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/aleph/http.clj
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@
35
35
| `port` | the port the server will bind to. If `0`, the server will bind to a random port.
36
36
| `socket-address` | a `java.net.SocketAddress` specifying both the port and interface to bind to.
37
37
| `bootstrap-transform` | a function that takes an `io.netty.bootstrap.ServerBootstrap` object, which represents the server, and modifies it.
38
-
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object if an SSL connection is desired |
38
+
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object or a map of SSL context options (see `aleph.netty/ssl-server-context` for more details) if an SSL connection is desired |
39
39
| `manual-ssl?` | set to `true` to indicate that SSL is active, but the caller is managing it (this implies `:ssl-context` is nil). For example, this can be used if you want to use configure SNI (perhaps in `:pipeline-transform`) to select the SSL context based on the client's indicated host name. |
40
40
| `pipeline-transform` | a function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
41
41
| `executor` | a `java.util.concurrent.Executor` which is used to handle individual requests. To avoid this indirection you may specify `:none`, but in this case extreme care must be taken to avoid blocking operations on the handler's thread.
@@ -107,7 +107,7 @@
107
107
the `connection-options` are a map describing behavior across all connections:
108
108
109
109
|:---|:---
110
-
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object, only required if a custom context is required
110
+
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object or a map of SSL context options (see `aleph.netty/ssl-client-context` for more details), only required if a custom context is required
111
111
| `local-address` | an optional `java.net.SocketAddress` describing which local interface should be used
112
112
| `bootstrap-transform` | a function that takes an `io.netty.bootstrap.Bootstrap` object and modifies it.
113
113
| `pipeline-transform` | a function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
| `private-key` | a `java.io.File`, `java.io.InputStream`, or `java.security.PrivateKey` containing the client-side private key.
759
+
| `certificate-chain` | a `java.io.File`, `java.io.InputStream`, sequence of `java.security.cert.X509Certificate`, or array of `java.security.cert.X509Certificate` containing the client's certificate chain.
760
+
| `private-key-password` | a string, the private key's password (optional).
761
+
| `trust-store` | a `java.io.File`, `java.io.InputStream`, array of `java.security.cert.X509Certificate`, or a `javax.net.ssl.TrustManagerFactory` to initialize the context's trust manager.
762
+
| `ssl-provider` | `SslContext` implementation to use, on of `:jdk`, `:openssl` or `:openssl-refcnt`. Note, that when using OpenSSL based implementations, the library should be installed and linked properly.
763
+
| `ciphers` | a sequence of strings, the cipher suites to enable, in the order of preference.
764
+
| `protocols` | a sequence of strings, the TLS protocol versions to enable.
765
+
| `session-cache-size` | the size of the cache used for storing SSL session objects.
766
+
| `session-timeout` | the timeout for the cached SSL session objects, in seconds.
767
+
Note that if specified, the types of `private-key` and `certificate-chain` must be \"compatible\": either both input streams, both files, or a private key and an array of certificates."
| `private-key` | a `java.io.File`, `java.io.InputStream`, or `java.security.PrivateKey` containing the server-side private key.
822
+
| `certificate-chain` | a `java.io.File`, `java.io.InputStream`, or array of `java.security.cert.X509Certificate` containing the server's certificate chain.
823
+
| `private-key-password` | a string, the private key's password (optional).
824
+
| `trust-store` | a `java.io.File`, `java.io.InputStream`, sequence of `java.security.cert.X509Certificate`, array of `java.security.cert.X509Certificate`, or a `javax.net.ssl.TrustManagerFactory` to initialize the context's trust manager.
825
+
| `ssl-provider` | `SslContext` implementation to use, on of `:jdk`, `:openssl` or `:openssl-refcnt`. Note, that when using OpenSSL based implementations, the library should be installed and linked properly.
826
+
| `ciphers` | a sequence of strings, the cipher suites to enable, in the order of preference.
827
+
| `protocols` | a sequence of strings, the TLS protocol versions to enable.
828
+
| `session-cache-size` | the size of the cache used for storing SSL session objects.
829
+
| `session-timeout` | the timeout for the cached SSL session objects, in seconds.
830
+
| `start-tls` | if the first write request shouldn't be encrypted.
831
+
| `client-auth` | the client authentication mode, one of `:none`, `:optional` or `:require`.
832
+
Note that if specified, the types of `private-key` and `certificate-chain` must be \"compatible\": either both input streams, both files, or a private key and an array of certificates."
| `private-key` | A `java.io.File`, `java.io.InputStream`, or `java.security.PrivateKey` containing the client-side private key.
758
-
| `certificate-chain` | A `java.io.File`, `java.io.InputStream`, or array of `java.security.cert.X509Certificate` containing the client's certificate chain.
759
-
| `private-key-password` | A string, the private key's password (optional).
760
-
| `trust-store` | A `java.io.File`, `java.io.InputStream`, array of `java.security.cert.X509Certificate`, or a `javax.net.ssl.TrustManagerFactory` to initialize the context's trust manager.
761
-
762
-
Note that if specified, the types of `private-key` and `certificate-chain` must be
763
-
\"compatible\": either both input streams, both files, or a private key and an array
Copy file name to clipboardExpand all lines: src/aleph/tcp.clj
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@
88
88
|:---|:-----
89
89
| `port` | the port the server will bind to. If `0`, the server will bind to a random port.
90
90
| `socket-address` | a `java.net.SocketAddress` specifying both the port and interface to bind to.
91
-
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object. If given, the server will only accept SSL connections and call the handler once the SSL session has been successfully established. If a self-signed certificate is all that's required, `(aleph.netty/self-signed-ssl-context)` will suffice.
91
+
| `ssl-context` | an `io.netty.handler.ssl.SslContext` object or a map of SSL context options (see `aleph.netty/ssl-server-context` for more details). If given, the server will only accept SSL connections and call the handler once the SSL session has been successfully established. If a self-signed certificate is all that's required, `(aleph.netty/self-signed-ssl-context)` will suffice.
92
92
| `bootstrap-transform` | a function that takes an `io.netty.bootstrap.ServerBootstrap` object, which represents the server, and modifies it.
93
93
| `pipeline-transform` | a function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
94
94
| `raw-stream?` | if true, messages from the stream will be `io.netty.buffer.ByteBuf` objects rather than byte-arrays. This will minimize copying, but means that care must be taken with Netty's buffer reference counting. Only recommended for advanced users."
@@ -164,7 +164,7 @@
164
164
| `port` | the port of the server.
165
165
| `remote-address` | a `java.net.SocketAddress` specifying the server's address.
166
166
| `local-address` | a `java.net.SocketAddress` specifying the local network interface to use.
167
-
| `ssl-context` | an explicit `io.netty.handler.ssl.SslHandler` to use. Defers to `ssl?` and `insecure?` configuration if omitted.
167
+
| `ssl-context` | an explicit `io.netty.handler.ssl.SslHandler` or a map of SSL context options (see `aleph.netty/ssl-server-context` for more details) to use. Defers to `ssl?` and `insecure?` configuration if omitted.
168
168
| `ssl?` | if true, the client attempts to establish a secure connection with the server.
169
169
| `insecure?` | if true, the client will ignore the server's certificate.
170
170
| `bootstrap-transform` | a function that takes an `io.netty.bootstrap.Bootstrap` object, which represents the client, and modifies it.
0 commit comments