I found that my ~/.heroku/cacert.pem file had no content and was 0 bytes, so I github page: https://github.com/heroku/heroku/blob/master/data/cacert.pem and .