Questo contenuto non è disponibile nella lingua selezionata.
Chapter 2. OpenWire over SSL
URI syntax
Example 2.1. Syntax for a vanilla SSL Connection
ssl://Host[:Port]?transportOptions
Example 2.2. Syntax for NIO Connection
nio+ssl://Host[:Port]?transportOptions
Setting transport options
- When using a URI to open a connection between a client and a broker, you just specify the name of the option as shown.
Example 2.3. Setting an Option on a Client-Side TCP URI
tcp://fusesource.com:61616?trace=true
- When using a URI to open a broker listener socket, you prefix the option name with
transport.
as shown.Example 2.4. Specifying Transport Options for a Listener Socket
tcp://fusesource.com:61616?transport.trace=true
- When using a URI to open a broker connection socket, you just specify the name of the option as shown.
Example 2.5. Setting an Option on a Client-Side TCP URI
tcp://fusesource.com:61616?trace=true
&
symbol, replacing it with & as shown.
Example 2.6. Transport Options in XML
?option=value&option=value&...
SSL transport options
SSLServerSocket
created for the connection. These options are listed in Table 2.1, “SSL Transport Options”.
Option | Default | Description |
---|---|---|
enabledCipherSuites | Specifies the cipher suites accepted by this endpoint, in the form of a comma-separated list. | |
enabledProtocols | Specifies the secure socket protocols accepted by this endpoint, in the form of a comma-separated list. If using Oracle's JSSE provider, possible values are: TLSv1 , TLSv1.1 , or TLSv1.2 (do not use SSLv2Hello or SSLv3 , because of the POODLE security vulnerability, which affects SSLv3). | |
wantClientAuth | (broker only) If true , the server requests (but does not require) the client to send a certificate. | |
needClientAuth | false | (broker only) If true , the server requires the client to send its certificate. If the client fails to send a certificate, the server will throw an error and close the session. |
enableSessionCreation | true | (broker only) If true , the server socket creates a new SSL session every time it accepts a connection and spawns a new socket. If false , an existing SSL session must be resumed when the server socket accepts a connection. |
Configuring broker SSL options
transport.OptionName
. For example, to enable an OpenWire SSL port on a broker, you would add the following transport element:
<transportConnector name="ssl" uri="ssl:localhost:61617?transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2" />
&
, between options as &
.
Configuring client SSL options
socket.OptionName
. For example, to connect to an OpenWire SSL port, you would use a URL like the following:
ssl:localhost:61617?socket.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2