SSL Application Link to Jira

Hi

I've got a Stash server running over SSL, on port 8443: https://stash:8443/ It is using a self-signed certificate for the encryption.

I'm trying to create an application link between our Jira instance (non-SSL, HTTP) and the Stash instance. I have imported the self-signed cert into the keystore as described in the answer here. In addition, I've downloaded the SSLPoke application and confirmed that I am able to connect from the Jira server:

# java SSLPoke stash 8443
Successfully connected

I've also confirmed that the REST API (which I assume is being used for the application links) is running on port 8443 by checking that URLs such as these return valid data:

https://stash:8443/rest/api/1.0/profile/recent/repos

The error I get when I try to create an application link from Stash reads:

The Remote application is not able to connect to 'Stash'(Stash) by using the URL 'https://stash:8443'.

When I try to create the link from Jira, the errors displayed are:

The host is unknown. Verify that the URL is correct.
The specified URL does not appear to be an instance of the selected type.

Does anyone know what could be the problem here? Am I wrong in assuming that the application links use the REST API? If so, what ports need to be accessible to enable SSL application links between Jira and Stash?

1 answer

1 accepted

This widget could not be displayed.

Were there any errors in the logs that seem relevant?

I would start by confirming if the certificate is stored in the correct Java keystore. Its possible JIRA is unable to connect to Stash over SSL because of the certificate not being available. You can use this plugin for a simple way to connecting/importing a SSL cert:

https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugin.jirasslplugin

It was in fact the wrong JRE that had the certificate added. Jira was using a different JRE than the standard system one.

I just came to the same conclusion! It can be found here: /opt/atlassian/jira/jre/lib/security/cacerts

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

54 views 1 0
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