Change all uses of curl to properly verify peer certificates.