[curl] Improve detecting and handling of SSL related errors

Reviewed by: Peter Gal.
[curl] Buildfix after merging the Bug 124150 - Rename PlatformCertificateInfo to CertificateInfo. Rename PlatformCertificateInfo in curl.

Reviewed by: Peter Gal.