Add 'ssl' param to client
merged madisp's ssl param addition and resolved conflicts