An abstraction to SSL sockets and their usage