Validate ssl certs against pem file.

Like the other wrappers, we're ensuring we validate ssl certs to avoid man-in-the-middle attacks.