Hi Dilip;
I'm not an MQ expert but I seem to remember that you need to set an environment variable for MQ. Since you need to use SSL - I think you need to explicitly set the port for SSL.
MQSERVER= ChannelName/Protocol/Server(port)
For example: MQSERVER=SYSTEM.DEF.SVRCONN/TCP/localhost(1416)
Also, here is some other information that might be helpful ...
Regards ... Chris