[ http://jira.codehaus.org/browse/MCHANGES-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189489#action_189489 ]
Krishna Pothula commented on MCHANGES-175: ------------------------------------------ Thank you for the quick response. I can add that cert to my local trust store but we have Hudson where we actually do the builds and site documentation generation. Most of the users dont have permissions to do that on CI server. I have been trying to use the jira-report from quite sometime and I could not because of this error. I currently found a solution and am testing it by building changes-plugin locally. It seems to work fine. Solution is to use a Custom SocketFactory with HttpClient. http://hc.apache.org/httpclient-3.x/sslguide.html I am planning to submit a patch for this bug by tomorrow. > SSLHandshakeException when accessing Jira using https > ----------------------------------------------------- > > Key: MCHANGES-175 > URL: http://jira.codehaus.org/browse/MCHANGES-175 > Project: Maven 2.x Changes Plugin > Issue Type: Bug > Components: jira-report > Affects Versions: 2.1 > Reporter: Krishna Pothula > Priority: Blocker > > We have an intranet Jira setup with https to have integration with LDAP. The > certificate used is an internal one not issued by any CA. > While accessing this repository jira-report throws below Exception: > ------------------------------- > 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:150) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1476) > at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:174) > at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:168) > at > com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:847) > at > com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106) > at > com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495) > at > com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:815) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025) > at > com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:619) > at > com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) > at > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) > at > org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827) > at > org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975) > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) > at > org.apache.maven.plugin.jira.JiraHelper.getPidFromJira(JiraHelper.java:55) > at > org.apache.maven.plugin.jira.AbstractJiraDownloader.doExecute(AbstractJiraDownloader.java:363) > at > org.apache.maven.plugin.jira.JiraMojo.executeReport(JiraMojo.java:245) > ------------------------------------ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira