Add support for SSL to both client and server.
Add tests for same.