클라이언트 SSL이 필요한 gitlab에 jenkins를 연결하는 방법은 무엇입니까?

클라이언트 SSL이 필요한 gitlab에 jenkins를 연결하는 방법은 무엇입니까?

양방향 SSL 인증으로 보호되는 자체 호스팅 gitlab 저장소로 작업해야 합니다. 따라서 git의 자체 자격 증명을 따로 연결하려면 git에 대한 요청이 클라이언트 SSL과 함께 제공되어야 합니다.

브라우저 관점에서. pfx 인증서를 가져오면 Google Chrome 및 Mozilla Firefox를 사용하여 탐색할 수 있습니다.

jenkins의 상자에 있는 git 클라이언트는 전역 git config http.sslCert를 통해 SSL 클라이언트로 구성되었으며 이는 테스트되었으며 명령줄을 통해 작동합니다.jenkins version 2.141

또한 아래와 같이 p12 인증서를 업로드하여 git에 새로운 유형의 자격 증명을 추가했습니다. 젠킨스 자격 증명 페이지

그러나 몇 가지 이유로 추가 버튼을 클릭했을 때 Jenkins는 여전히 해당 클라이언트 인증서를 선택하는 방법을 표시할 수 없습니다. 그래서 비밀번호 유무에 관계없이 p12 인증서를 사용하여 새 인증서를 추가했는데 둘 다 동일한 결과를 제공합니다. 비밀번호를 사용하여 비밀번호 필드에 내보내기 비밀번호를 입력했습니다.

비밀번호가 포함된 p12 인증서

비밀번호 없이 p12 인증서 사용

비밀번호가 없는 p12 인증서

연결을 테스트하는 동안 두 결과는 동일합니다. 연결 테스트

hudson.plugins.git.GitException: Command "git fetch --tags --progress 
origin +refs/heads/master:refs/remotes/origin/master --prune" returned 
status code 128:
stdout: 
stderr: fatal: unable to access 
'https://git.theurl.git/': The 
requested URL returned error: 400

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:420)
at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:351)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:196)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:172)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

나는 정말로 선택의 여지가 없습니다. 비슷한 글을 찾았는데스택 오버플로하지만 그것은 별로 도움이 되지 않았습니다. 이 차단기를 통과하는 방법은 무엇입니까? 최근에 해본 사람 있나요?

관련 정보