How to solve svn error: E175002: SSL handshake failed: 'Remote host closed connection during hand'?

I'm currently testing the integration between JIRA 6.4.12 with Subversion.  I'm using the JIRA Subversion Plugin v2.1.2 as a solution to switch to as we will have to stop using Fisheye 3.2.5 once we upgrade to JIRA 7 due to JIRA 7 dropping support for integration to Fisheye 3.2.

Whenever i try to add a SVN repository that is hosted on a SVN server using SSL or HTTPS, i get the below error on the JIRA log file and the repository is not added.  This behavior doesn't happens for repositories hosted on an SVN server that is not using SSL or HTTPS.  Below is the complete error thread:


2017-11-06 15:15:27,712 http-apr-8444-exec-8 ERROR s2185000 915x307x1 fxeowb, /secure/AddSubversionRepository.jspa [plugin.ext.subversion.SubversionManagerImpl] Connection to Subversion repository failed: org.tmatesoft.svn.core.SVNException: svn: E175002: SSL handshake failed: 'Remote host closed connection during handshake'
org.tmatesoft.svn.core.SVNException: svn: E175002: SSL handshake failed: 'Remote host closed connection during handshake'
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(
    at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(
    at com.atlassian.jira.plugin.ext.subversion.SubversionManagerImpl.activate(
    at com.atlassian.jira.plugin.ext.subversion.SubversionManagerImpl.setup(
    at com.atlassian.jira.plugin.ext.subversion.SubversionManagerImpl.<init>(
    at com.atlassian.jira.plugin.ext.subversion.MultipleSubversionRepositoryManagerImpl.createSubversionManager(
    at com.atlassian.jira.plugin.ext.subversion.MultipleSubversionRepositoryManagerImpl.createRepository(
    at com.atlassian.jira.plugin.ext.subversion.action.AddSubversionRepositoryAction.doExecute(  <+1> (
    at com.atlassian.jira.action.JiraActionSupport.execute(  <+7> ( ( ( ( ( ( (
    at javax.servlet.http.HttpServlet.service(  <+2> ( (
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(  <+14> ( ( ( ( ( ( ( ( ( ( ( ( ( (
    at com.atlassian.jira.onboarding.postsetup.ui.PostSetupAnnouncementsFilter.doFilter(  <+3> ( ( (
    at com.atlassian.jira.tzdetect.IncludeResourcesFilter.doFilter(  <+3> ( ( (
    at com.atlassian.jira.baseurl.IncludeResourcesFilter.doFilter(  <+8> ( ( ( ( ( ( ( (
    at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(  <+3> ( ( (
    at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(  <+3> ( ( (
    at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter.doFilter(  <+3> ( ( (
    at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(  <+3> ( ( (

I asked the team that support the SVN server that uses the HTTPS to send me their SSL Certificate, and i added it to my JIRA java key store, but still get the same error.


Has anyone gone through this issue before?


1 answer

1 accepted

0 votes
Accepted answer

The usual culprit for this is that there's something wrong with the installation of the certificate that stops Java presenting something to Subversion that lets it get past the SSL handshake (note, it's usually NOT the certificate itself!)

Sometimes, it's the key chain on the server not matching the certificate, but when it's not that, the other time I've seen it is when Java is trying the various protocols available and choosing one that the target server thinks is compromised or invalid.

Try turning off the old broken TLS protocols - add this to your and restart Jira.


Hi Nic,  Thanks for your response.

I tried your recommendation, but it didn't work. 

I think that the problem may be that as my JIRA server is also running under HTTPS, the SVN server I'm trying to connect to also need to have my JIRA servers SSL Certificate added to their java cacerts file. 

I'll ask them to add my SSL certificate and see what happens.  I'll post back if that works.

Yes, that was the next step, to confirm the certificates are valid.

There's a utility called sslpoke which is really helpful because you can try remote urls with various certificates very quickly.

Hi Nic,

The issue is solved.  In addition to add that SVN servers' SSL certificate on my JAVA keystore, I also had to add that SVN server's FQDN/IP to the -Dhttp.nonProxyHosts list on my JIRA JVM parameters.

After I did that I was able to Add repositories from that SVN Server.


Thanks for your tips though.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,219 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you