In case of IBM HTTP Server + WAS combination there's a simple way to do it:
- assuming you have Plugin already configured for IHS, you need to edit it's config (plugin-cfg.xml) with some editor eg. vi
- find section for your backend server cluster you want to SSL off-load:
<Server ConnectTimeout="5" ExtendedHandshake="false" MaxConnections="-1" Name="PTS2CSIP01Node_STS2CSIP01S01" ServerIOTimeout="60" WaitForContinue="false">
<Transport Hostname="backend_hostname" Port="4300" Protocol="http"/>
<Transport Hostname="backend_hostname" Port="4343" Protocol="https">
<Property Name="keyring" Value="/opt/ibm/HTTPServer/Plugins/config/plgcfgname/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/ibm/HTTPServer/Plugins/config/plgcfgname/plugin-key.sth"/>
</Transport>
</Server>
</ServerCluster>
and comment out second Transport definition to:
<!--Transport Hostname="backend_hostname" Port="4343" Protocol="https">
<Property Name="keyring" Value="/opt/ibm/HTTPServer/Plugins/config/plgcfgname/plugin-key.kdb"/>
<Property Name="stashfile" Value="/opt/ibm/HTTPServer/Plugins/config/plgcfgname/plugin-key.sth"/>
</Transport-->
- restart your IHS server and check in error_log if plugin has been loaded properly
<Log LogLevel="Trace" Name="/opt/ibm/HTTPServer/Plugins/logs/plgcfgname/http_plugin.log"/>
Restart IHS once again and tail http_plugin.log while sending request to your https port of IHS. You shall get trace like that:
TRACE: ws_common: websphereFindTransport: Finding the transport
DETAIL: ws_common: websphereFindTransport: Setting the transport(case 3): backend_hostname on port 4300 <--- PLEASE NOTE THIS IS HTTP PORT OF WAS!
TRACE: ws_common: websphereExecute: Executing the transaction with the app server reqInfo is OKuseExistingStream=0, client->stream=(nil)
DEBUG: ws_common: websphereGetStream: Getting the stream to the app server
TRACE: ws_transport: transportStreamDequeue: Checking for existing stream from the queue
TRACE: ws_common: websphereGetStream: Have a connect timeout of 5; Setting socket to not block for the connect
TRACE: ws_common: websphereGetStream: Reseting socket to block
TRACE: ws_common: websphereGetStream: Setting socket to non-block for ServerIOTimeout over HTTP
DEBUG: ws_common: websphereGetStream: socket 13 connected to backend_hostname:4300
DEBUG: lib_stream: openStream: Opening the stream
DETAIL: ws_common: websphereGetStream: Created a new stream; queue was empty, socket = 13
Any questions? Good Luck!!! Feel free to comment&leave feedback.
Nice blog post your gave for us. I heartfully thank you and i request you to add more informations like this in future.
ReplyDeleteJAVA Training in Chennai
JAVA Training in Tnagar
Selenium Training in Chennai
Digital Marketing Course in Chennai
Python Training in Chennai
Big data training in chennai
JAVA Training in Chennai
Java Training in Velachery
Middleware And Security Technical Blog: Websphere: Disable Ssl Between Ihs And Was (Ihs Ssl Offload) >>>>> Download Now
ReplyDelete>>>>> Download Full
Middleware And Security Technical Blog: Websphere: Disable Ssl Between Ihs And Was (Ihs Ssl Offload) >>>>> Download LINK
>>>>> Download Now
Middleware And Security Technical Blog: Websphere: Disable Ssl Between Ihs And Was (Ihs Ssl Offload) >>>>> Download Full
>>>>> Download LINK