DVCS JIRA Setup not working

David Shapiro October 17, 2013

Morning,

I am trying to setup the DVCS connector in Jira 6.0.8 for the first time, and I am getting an error when I try to connect to our github enterprise version 11.10.302

Error!

Error obtaining access token. Response is invalid. Possibly bug in releases of GitHub Enterprise prior to 11.10.290.

We seem to have a version greater than what it is complaining about.

Side question for you: Url is set to http://server.domain.com/apps/jira, which is what users use to connect to Jira. Is callback url supposed to be different or the same? I set it as the same address.

5 answers

0 votes
changyao ye December 3, 2015

Hi . Thank you very much for your reply. I finally imported my self-signed certificate to jre trust store using openssl and keytool. Just like following. My JIRA is running on linux system.

 

sudo openssl s_client -connect <ip>:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > <ip>.crt
sudo keytool -import -alias <ip>:443 -keystore /opt/atlassian/jira/jre/lib/security/cacerts -file <ip>.crt

 

By the way. In the JIRA "Add New Account" page, the "host URL" must be https://<ip> not http://<ip>. In your case it may be https://github.domain.com I think. This took me so much time to figure out it. Using http will be fail. 

Thanks again

Luis Rodriguez August 26, 2016

I keep being asked for the keystore password.. how would I find that?

0 votes
David Shapiro December 3, 2015

Hello,

 

The source of a truststore file generally comes from your networking group who have set up their own internal certificate authority (CA) so that they control what certs you should trust in things like your browser to identify whether a site is real or not.

 

However, if you cannot get it from them for some reason, then you can use the fact your browser is pretty good at seeing this information and generate your own truststore file.

 

I used for example a browser like IE to visit github site.  I then clicked on the little lock icon in the url line:

 

 

                       

 

It will show you the CA that is saying trust it by the way. 

 

Click on View Certificate

Click Details tab

Click Copy to File…

Click through wizard (you probably want to select Base-64 encoded X.509 (.CER))

Save to a file (e.g., mytruststore).  It would create mytruststore.cer file.  You need to find where it put it.  It put it on my desktop.

It should be a matter of then just doing something like the following (depends on location of your Jira and what you want the file to be called):

 

keytool –import –keystore /local/mis/jira/home/truststore_file_here.jks –file mytruststore.cer

 

 

(keytool is a java utility)

0 votes
David Shapiro November 5, 2013

I added to setenv.sh: JVM_REQUIRED_ARGS=

-Djavax.net.ssl.trustStore=/local/mis/jira/home/truststore_file_here.jks

-Djavax.net.ssl.trustStorePassword=password_here"

changyao ye December 2, 2015

hello , I met the same problem . I don't konw how to make /local/mis/jira/home/truststore_file_here.jks jks file .can you tell how to do ?

0 votes
David Shapiro October 20, 2013

I finally worked this out. The error occurred because when we go to http://github.domain.com, it automatically flips to https://github.domain.com. I needed to have my jvm point at a trusted store that knew about this certificate. The error just did not point at this at all unfortunately.

0 votes
Tiago Comasseto
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.
October 20, 2013

Hey David, this error seems related to the OAuth token to me. Have you tried to create a new Consumer in Github as in this page?

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events