support for SSL sockets