Implementing the SSL client