Configure an httpEndpoint to use an SSL configuration other than the default
By default, an httpEndpoint element uses the server default SSL configuration, defaultSSLConfig. We can configure an httpEndpoint to use an SSL configuration other than the default SSL configuration.
We can configure an httpEndpoint to use an SSL configuration in multiple ways. Show different ways to configure an httpEndpoint to use an SSL configuration other than the default SSL configuration.
- Set the SSL options directly on the httpEndpoint. The following example shows how to set the SSL options on the httpEndpoint, and assumes that we have as SSL configuration that is named wasListenerSSLConfig already defined that is not in this example:
<httpEndpoint id="defaultHttpEndpoint" host="${listener.host}" httpPort="${http.port}" httpsPort="${https.port}"> <sslOptions sslRef="wasListenerSSLConfig" /> </httpEndpoint>
<sslOptions id="mySSLOptions" sslRef="wasListenerSSLConfig" /> <httpEndpoint id="defaultHttpEndpoint" host="${listener.host}" httpPort="${http.port}" httpsPort="${https.port}" sslOptionsRef="mySSLOptions" />
<sslOptions id="defaultSSLOptions" sslRef="wasListenerSSLConfig" />