On Tuesday, May 13, 2014 10:17:28 AM UTC-4, Konstantin Khomoutov wrote:
>
> On Tue, 13 May 2014 06:32:28 -0700 (PDT) 
> Matthew Polder <mpt...@gmail.com <javascript:>> wrote: 
>
> > I'm trying to use git to connect to a https server that requires PKI 
> > certificates for authentication. I'm running git on RHEL 6.x, so it 
> > is using the NSS libraries (I believe). 
> [...] 
> > When I attempt to clone the git repo on the https server, I get 
> > 
> > * Initializing NSS with certpath: sql:/etc/pki/nssdb 
> > * NSS error -8018 
> > 
> > I then set the environment variable SSL_DIR to ~/.ssl which does 
> > change the certpath but I get the same error. 
>
> If Git throws the same error, I'd say there are just two possibilities: 
>
> * /etc/pki/nssdb is hard-coded to Git (or, rather, supposedly to the 
>   cURL's code -- Git uses libcurl for HTTP[S] access, and that, in 
>   turn, uses some backend to do HTTPS -- libnss in your case, it seems). 
>
> * This env. variable is not exported so that it's seen in your shell 
>   but the Git process does not inherit it which causes libnss to 
>   use the default value for that path. 
>
>   What happens if you do 
>
>   $ export SSL_DIR="$HOME/.ssl" 
>   $ git clone ... 
>
>   ? 
>

When I do:

setenv SSL_DIR /home/myusername/.ssl

and then run git it does successfully incorporate this path:

* Initializing NSS with certpath: sql:/home/myusername/.ssl
* NSS error -8018 

but it's not picking up the certificate info, likely do to my .gitconfig 
not being set correctly.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to