Hi Kushal,
I have never done with DB2 (yes with an LDAP) but the steps normally are the same.
- Enable SSL in your target host (DB2). Normally is done enabling an SSL port on DB2 and using a certificate (known or self-signed)
Configuring Secure Sockets Layer (SSL) support in a DB2 instance http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.sec.doc/doc/t0025241.html?lang=en - Exchange issuers SSL CA certificate between source (WAS) and target (DB2). You need to import WAS certificate issuer CA into TrueStore of the DB2 and viceversa
- Change the port of your Datasource (to the SSL port)
Hope this helps. Tell us if you need more support
Regards