Handling both client cert and server trust challenges.