Support self signed SSL certificates when accessing Git repositories

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 3.0
    • Affects Version/s: None
    • Component/s: Repository (Git)
    • None
    • Environment:

      Apache 2.2 + Git 1.7.3 + Git Smart HTTP Protocol

      When using self signed certificates in Apache that is the Git front-end cloning throws error:

      com.atlassian.bamboo.repository.RepositoryException: https://git-server/my-repo/repo.git: cannot open git-upload-pack
      	at com.atlassian.bamboo.plugins.git.GitOperationHelper.obtainLatestRevision(GitOperationHelper.java:90)
      	at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:130)
      	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:92)
       ....
      Caused by: org.eclipse.jgit.errors.TransportException: https://git-server/my-repo/repo.git: cannot open git-upload-pack
      	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:393)
      	at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:203)
      	at com.atlassian.bamboo.plugins.git.GitOperationHelper.obtainLatestRevision(GitOperationHelper.java:72)
      	... 22 more
      Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
      	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
      ....
      	... 24 more
      Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:294)
      ....
      	... 38 more
      Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      

      Git plugin should allow custom certificates silently just like SVN repository integration does.

              Assignee:
              SlawekA (Inactive)
              Reporter:
              Marko Lahma
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: