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

SSL exception logging

XMLWordPrintable

      If a CA does not exist in Java's key store an exception will be logged to the Jenkins.log. Additional exceptions may also be logged in the console due to the SSL handshake error. However, the downstream exceptions may cause confusion. Additional exception handling is required to log an exception to the console and clearly show the problem lies with the SSL handshake.

      javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provide
      r.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
      at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
      at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
      at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
      at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
      at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
      at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
      at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
      at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)

            inkysea Kris Thieler
            inkysea Kris Thieler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: