In my case, I had set the evironment variable OPENSSL_CONF to an invalid value. Once I removed, I was able to make ssl connection to a private repo.