connecting bitbucket to jira/crowd behind apache reverse proxy Edited

Hi We've been asked to connect bitbucket to jira where jira is using apache 2.2 reverse proxy.  When testing with SSLPoke things are fine.  The certs from jira have been added using keytool in the default cacerts file ~/jre/lib/security/cacerts

When testing the directory via the GUI The error is: "PKIX path building failed: unable to find valid certification path to requested target".

My question is, where should the certs file live?  in the file?

BTW we're using bitbucket 5.3.1 & apache is listening on 443


1 answer

Hi Mike! Welcome to the Community :)

where should the certs file live?

Short answer:

The keystore (also known as the truststore) is typically located at $JAVA_HOME/lib/security/cacerts). This contains a list of all known Certificate Authority (CA) certificates. The instructions can be found at Connecting to SSL services.

Long answer:

The error you're getting has been documented in our knowledge base, you can find it at 

Unable to connect to SSL services due to pkix path building failed. My recommendation would be to read that article to understand why it happened and follow the steps there to fix the issue. 

Let us know if this helped you!

Best regards,


Thanks, yes I've read that article and my cacerts are in the correct spot,  I've used SSLPoke to verify successfully.  I think the issue is to do with the apache proxy.  I can successfully use the Directory if I specify port 8080 on the host.  

Cheers Ana!

in answer to your last question,  no this didn't help.

I can see via Vhost config that we are proxy'ing connections.

and that apache is listening on 443. 

If I test the directory on port 443,  I see this:

That error suggests Apache is not proxying Jira properly, or that there are some security settings blocking access (at least to the "pages" that the internal Crowd serves up)

Cheers Nic.  Looking into ti today. 

Thank you

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

690 views 5 9
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