Hello, Alex Vong <alexvong1...@gmail.com> skribis:
> Btw, does anyone have problem cloning github repo? I get the SSL > verfication problem mentioned earlier. However, I have already installed > nss-certs and include the following line in .bashrc: > GIT_SSL_CAINFO="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" > export GIT_SSL_CAINFO > > Any ideas? It works for me (on GuixSD, but that shouldn’t make a difference.) What does “wc -l $GIT_SSL_CAINFO” say? >From a quick look, Git honors a bunch of additional environment variables in this area: --8<---------------cut here---------------start------------->8--- $ ltrace -f -e getenv sh -c 'git clone https://github.com/elm-lang/elm-compiler' 2>&1 |grep SSL [pid 21398] sh->getenv("GIT_SSL_NO_VERIFY") = nil [pid 21398] sh->getenv("GIT_SSL_CERT") = nil [pid 21398] sh->getenv("GIT_SSL_KEY") = nil [pid 21398] sh->getenv("GIT_SSL_CAPATH") = nil [pid 21398] sh->getenv("GIT_SSL_CAINFO") = "/etc/ssl/certs/ca-certificates.c"... [pid 21398] sh->getenv("GIT_SSL_CERT_PASSWORD_PROTECTED") = nil [pid 21398] sh->getenv("GIT_SSL_VERSION") = nil [pid 21398] sh->getenv("GIT_SSL_CIPHER_LIST") = nil --8<---------------cut here---------------end--------------->8--- Could it be that one of these is shadowing GIT_SSL_CAINFO? There’s also ‘http.sslCAInfo’ and similar (see git-config(1)). HTH, Ludo’.