added support for client authentication via SSL