For me the problem was I an artifact environment variable left behind by an unistalled program.
First, I temporarily unset the CURL_CA_BUNDLE variable in my terminal. Then I try to run the program. Once that worked, I renamed CURL_CA_BUNDLE environment variable to CURL_CA_BUNDLE_depr just incase I need to go back to it.
And my installation went smoothly.