Confluence Installation - Connect with JIRA Error

I am trying to setup Confluence 5.8.14, and trying to connect with JIRA 7.0. I get to the part where I connect it to JIRA, and it errors out, giving an error on the JIRA Base URL.

Connection refused. Check if an instance of JIRA 4.3 or later is running on the given url.

My JIRA is behind the Apache Proxy with SSL.  My JIRA Base URL that I enter is https://jira.server.com

If I bypass the proxy (http://jira.server.com:8080/), then, all is good. 

Googled issues, and I think the error would likely be SSL.  I couldn't find anything in the logs (/opt/atlassian/confluence/logs/catalina.out or /opt/atlassian/jira/logs/catalina.out).

I grabbed the public key from JIRA by doing:

sudo openssl s_client -connect jira.server.com:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > JiraPublic.crt

I then added it to the Confluence Java KeyStore:

sudo /opt/atlassian/confluence/jre/bin/keytool -import -alias JiraServer -keystore /opt/atlassian/confluence/jre/lib/security/cacerts -file /location/of/JiraPublic.crt

I restarted Confluence.  This caused an major error.  Apparently, restarting confluence in middle of Setup is bad (I thought it would just pick up from where I left off). 

So I just uninstalled Confluence (and removed both the Home Directory and Installation Directory.  I tried removingn the configuration.cfg.xml file, but didn't work)

Reinstalled Confluence

Stopped Confluence

Installed the keystore from above

sudo /opt/atlassian/confluence/jre/bin/keytool -import -alias JiraServer -keystore /opt/atlassian/confluence/jre/lib/security/cacerts -file /location/of/JiraPublic.crt

Started Confluence

Ran Setup Again.

Got the same error.

Any ideas? 

1 answer

1 accepted

Accepted Answer
1 vote

Update, I have figured it out.  When I initially did this, I think I forgot to install the PublicKey into the keystore the 2nd time (right after I reinstalled Confluence).  Once I added the key to the Confluence JRE KeyStore, BEFORE the setup, I was able to connect to JIRA fine after that.

Thanks @jaesun, you sent me the right direction.  Worth adding that in my case this was a self-signed cert (as these servers are for our company's internal network only) so when installing the cert to the keystore I also had to add -trustcacerts to explicitly trust this cert without a CA,

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

311 views 1 4
Join discussion

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