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

Certificate isn't ignored when using Javamail

      We get the following exception after installing the plugin.

      javax.mail.MessagingException: Could not connect to SMTP host: mail.tsctech.com, port: 465;
        nested exception is:
      	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.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
      	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
      

      Is there a way to verify the functioning of the plugin?

          [JENKINS-24830] Certificate isn't ignored when using Javamail

          Daniel Beck added a comment -

          Daniel Beck added a comment - Is this about https://wiki.jenkins-ci.org/display/JENKINS/Skip+Certificate+Check+plugin ?

          Yes, I expected the plugin to ensure that SSL or TLS doesn't checking the certificate since the mail config doesn't provide that option.

          Corneil du Plessis added a comment - Yes, I expected the plugin to ensure that SSL or TLS doesn't checking the certificate since the mail config doesn't provide that option.

          Daniel Beck added a comment -

          Daniel Beck added a comment - The plugin only handles HTTPS connections, so this is a feature request at best, and addressing a completely wrong component at worst. References: https://github.com/jenkinsci/skip-certificate-check-plugin/blob/master/src/main/java/org/jenkinsci/plugins/skipcert/ItemListenerImpl.java#L33 https://github.com/jenkinsci/skip-certificate-check-plugin/blob/master/src/main/java/org/jenkinsci/plugins/skipcert/ItemListenerImpl.java#L35

            kohsuke Kohsuke Kawaguchi
            corneil_duplessis Corneil du Plessis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: