Configure an httpEndpoint to use an SSL configuration other than the default
The following examples 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
Assumes we have as SSL configuration named wasListenerSSLConfig:
<httpEndpoint id="defaultHttpEndpoint" host="${listener.host}" httpPort="${http.port}" httpsPort="${https.port}"> <sslOptions sslRef="wasListenerSSLConfig" /> </httpEndpoint>
Reference an sslOption element in the httpEndpoint
Assumes we have an SSL configuration named wasListenerSSLConfig:
<sslOptions id="mySSLOptions" sslRef="wasListenerSSLConfig" /> <httpEndpoint id="defaultHttpEndpoint" host="${listener.host}" httpPort="${http.port}" httpsPort="${https.port}" sslOptionsRef="mySSLOptions" />
Set the default sslOptions element to point to an SSL configuration other than the default
Assumes we have an SSL configuration named wasListenerSSLConfig:
<sslOptions id="defaultSSLOptions" sslRef="wasListenerSSLConfig" />
Parent topic: Secure communications with the Liberty profile