Added support for client certs and fixed the ssl argument