[curl] Improve SSL support: handle client certificates.

Reviewed by Peter Gal.