Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

enabling apache ssl proxy in front of jira and confluence broke integration.

Kent Perrier May 13, 2014

I followed the instructions at https://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache+using+SSLto terminate SSL at an apache instance in front of both confluence and jira. (They are running on different servers and the SSL cert is an internal self-signed cert.) Accessing either application works fine. I put an apache rewrite rule to send any requests to (for example) http://jira.us.local/browse/IN-1234to https://.... on both servers.

This has apparently broken the integration between Jira and Confluence. Looking at a Confluence document that contains a link to a Jira has the following text:

com.atlassian.confluence.macro.MacroExecutionException: 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

Through searching I found some documents that pointed to the fact that the Java instance will not trust the self signed certificate. Following the directions here: https://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services, I imported the cert into the JRE certificate store in /opt/atlassian/[jira|conflence]/jre/lib/security/cacerts. This has not made any difference in operation. Do I need to restart Jira and Confluence so they pick up the updated certificate store?

If I edit or create a page in confluence and use the ctrl-shift-J macro to insert a link to a Jira I attempt to use the search feature to fine my Jira, I get the following error in a red box:

Received the following HTTP error code from the server:500

I don't see this error in the apache logs, so I don't know where it is coming from. I am at a loss here. I am not an admin for either Jira or Confluence but I can get them to help me.

We are running Jira 6.2 and Confluence 5.4.3

3 answers

1 accepted

0 votes
Answer accepted
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2014

Do I need to restart Jira and Confluence so they pick up the updated certificate store?

And of course the answer to this is yes. And also, what @Danielsaid is true. Do:

User --- https ---> Apache --- http(s) ---> Tomcat

Kent Perrier May 18, 2014

The restart did clear up the issue.

0 votes
Kent Perrier May 13, 2014

Sorry, I wan't clear. I am doing the HTTPS at the apache layer, I did not muck with the tomcat config to get SSL working there.

I will schedule a time to restart Confluence and Jira and let you know what happens.

0 votes
Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2014
It sounds like your config is browser->http proxy->https tomcat. My suggestion would be to move https to the front (or at least add it there)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events