Hi Kalyan,
If I understood your question. You would like to encrypt your database connection and MQ connection. Database encryption configuration could be different for each vendor/version. For Websphere MQ you will need to import certificates and change some configurations. Above you have a good description to do this:
Securing Channels with SSL
Regards,
Adil Calomeno Junior
Senior Consultant
Ascendant Solutions
Brasil