Pretty error for ssl issue

When user has ssl enabled for a non ssl server /or ssl disabled for ssl server.An error shows up.This PR lets user know about it.