If you ever get this types of error while downloading anyfile using curl then,
just go to this link http://curl.haxx.se/ca/cacert.pem and download this file to you home directory
then write this command to your terminal or shell
export CURL_CA_BUNDLE=”/home/cacert.pem”