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

Not ignoring javax.net.ssl.SSLHandshakeException(java.security.cert.CertificateException: Certificates does not conform to algorithm constraints)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: http-request-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.59
      http-request-plugin: latest(1.8.19)
      Running on Java 8 Node
    • Similar Issues:

      Description

      When we tried sending a request to one of the https servers got the following exception:

      Wanted to ignore errors instead of setting up certificates and all. Please help. Thanks. 

      def response = httpRequest contentType: 'APPLICATION_JSON', ignoreSslErrors:true, httpMode: 'POST', requestBody: body, url: "https://abc.northamerica.net:443/"
      echo response.toString()
      

      Error:

      java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
      	at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1117)
      	at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:1043)
      	at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:985)
      	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
      Caused: javax.net.ssl.SSLHandshakeException
      

      Environment: Jenkins 2.59 http-request-plugin: latest(1.8.19)

        Attachments

          Activity

          nrayapati Naresh Rayapati created issue -
          nrayapati Naresh Rayapati made changes -
          Field Original Value New Value
          Description When we tried sending a request to one of the https servers got the following exception:

          Wanted to ignore errors instead of setting up certificates and all. Please help. Thanks. 
          {code:java}
          def response = httpRequest contentType: 'APPLICATION_JSON', ignoreSslErrors:true, httpMode: 'POST', requestBody: body, url: "https://abc.northamerica.net:443/"
          echo response.toString()
          {code}
          Error:
          {code:java}
          java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
          at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1117)
          at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:1043)
          at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:985)
          at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
          Caused: javax.net.ssl.SSLHandshakeException
          {code}
          When we tried sending a request to one of the https servers got the following exception:

          Wanted to ignore errors instead of setting up certificates and all. Please help. Thanks. 
          {code:java}
          def response = httpRequest contentType: 'APPLICATION_JSON', ignoreSslErrors:true, httpMode: 'POST', requestBody: body, url: "https://abc.northamerica.net:443/"
          echo response.toString()
          {code}
          Error:
          {code:java}
          java.security.cert.CertificateException: Certificates does not conform to algorithm constraints
          at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1117)
          at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:1043)
          at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:985)
          at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)
          Caused: javax.net.ssl.SSLHandshakeException
          {code}

          Environment: Jenkins 2.59 http-request-plugin: latest(1.8.19)
          nrayapati Naresh Rayapati made changes -
          Environment Jenkins 2.59
          http-request-plugin: latest(1.8.19)
          Running on Java 8 Node
          nrayapati Naresh Rayapati made changes -
          Assignee Janario Oliveira [ janario ] Naresh Rayapati [ nrayapati ]
          nrayapati Naresh Rayapati made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          nrayapati Naresh Rayapati made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          janario Janario Oliveira made changes -
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]
          nrayapati Naresh Rayapati made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            Assignee:
            nrayapati Naresh Rayapati
            Reporter:
            nrayapati Naresh Rayapati
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: