Update to allow sockets over SSL