Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35389

Gerrit-Trigger cannot connect to gerrit Rest API though https (certificate error)

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: gerrit-trigger-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 1.651.2
      gerrit-trigger-plugin: 2.21.0
    • Similar Issues:

      Description

      I have a nginx reverse proxy in front of many website to handle SSL certificates. So it using virtual host (by name), and one certificate for each virtual host. My gerrit running behind this reverse proxy.
      Gerrit has events-log plugin installed, and https certificate is signed by public CA root.

      Now when I config gerrit-trigger-plugin to talk to gerrit, it keep complaining SSLHandShake error because cannot recognize certificate.

      After many debug, I found that gerrit-trigger-plugin using deprecated HttpClient APIs, which cause gerrit-trigger-plugin connect to the IP instead of hostname to do handshake, so it getting wrong certificate.

        Attachments

          Activity

          weigao Wei Gao created issue -
          weigao Wei Gao made changes -
          Field Original Value New Value
          Assignee Wei Gao [ weigao ] rsandell [ rsandell ]
          weigao Wei Gao made changes -
          Attachment JENKINS-35389.patch [ 32917 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 171682 ] JNJira + In-Review [ 184404 ]

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              weigao Wei Gao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: