[SOLVED] github certificate verification failed during installation (original) (raw)
August 19, 2020, 10:49pm 2
I got past this by running this command as root
$ cert_file = $(curl-config --ca) # locate the certificate file
$ echo -n | openssl s_client -showcerts -server www.github.com -connect www.github.com:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >> $cert_file # write the github certificates to it
Then this command as a regular user
$ cert_file = $(curl-config --ca) # locate the certificate file
$ git config --global http.sslCAinfo $cert_file # tell git where to find my certificates
It may be possible to skip the first section since I find it hard to believe the github certs would be missing on any Arch-based distro. Most likely git just didn’t know where to find them.