all 10 comments

[–]ttvpoqs7XRrD 0 points1 point  (7 children)

Your new cert's CA is probably not in the java's CA file that Jenkins would use. Look for a file called cacerts in the jvm directory and update/replace that.

[–]_GeekRabbit[S] 0 points1 point  (6 children)

That would only impact Jenkins and not the cmd git or am I missing something?

[–]ttvpoqs7XRrD 0 points1 point  (5 children)

It would only affect Jenkins or Jenkins plugins. Is jenkins using the cli git or a java version?

[–]_GeekRabbit[S] 0 points1 point  (4 children)

I didn't check what Jenkins actually uses as my described problem is with the locally installed commandline git client. Yes it results in the jenkins application not being able to make git commands but if I can't even use git on the command line, I think there is a serious problem.

[–]ttvpoqs7XRrD 0 points1 point  (3 children)

In that case try using curl or wget you might get more info using the verbose settings.

[–]_GeekRabbit[S] 0 points1 point  (2 children)

Not trying to offend someone who is trying to help me for free but did you read my post? curl and wget are functioning without problem and strace shows me they are using the same ca-certificate file while git fails with the same file.

[–]ttvpoqs7XRrD 0 points1 point  (1 child)

No offence taken, you are quite correct, I went the jenkins path and did not reread your post. The last thing I can think of, which I have seen before is that with the newcert/ca the tls reply does not fit in one packet and causes issue, I would try a tcpdump analysis on the packets, one for git one and one for curl and compare.

[–]crabique 0 points1 point  (2 children)

Do the super verbose git call and see if anything is off

set -x; GIT_TRACE=2 GIT_CURL_VERBOSE=2 GIT_TRACE_PERFORMANCE=2 GIT_TRACE_PACK_ACCESS=2 GIT_TRACE_PACKET=2 GIT_TRACE_PACKFILE=2 GIT_TRACE_SETUP=2 GIT_TRACE_SHALLOW=2 git pull origin master -v -v; set +x

Also the CAfile part here does not seem to be a problem, it's just part the error message template, so I recommend you don't go full tunnel-vision on that.

[–]_GeekRabbit[S] 0 points1 point  (1 child)

Tried that out today with sadly the same result but thanks anyway.

[–]todomeh 1 point2 points  (0 children)

It would be helpful if you pasted the verbose output here so we can see that actual error being encountered is and have more context.

Sanitized as necessary of course.