Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Oauth SignatureException jira-rest-api-oauth-authentication Edited

Hi

I'm attempting to get the JIRA OAuth 1.0a working with a minimalist Java Spring boot project.

I followed the steps described in this Atlassian Tutorial : https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/#overview

The only difference is that I'm running the project as a Spring boot project , not a simple java projet. Normally, it has no effect on the code executed.

I'm facing this error :

java.security.SignatureException: Signature length not correct: got 256 but was expecting 128

I have followed all the provided instructions on the key generation :

openssl genrsa -out jira_privatekey.pem 1024
openssl req -newkey rsa:1024 -x509 -key jira_privatekey.pem -out jira_publickey.cer -days 365
openssl pkcs8 -topk8 -nocrypt -in jira_privatekey.pem -out jira_privatekey.pcks8
openssl x509 -pubkey -noout -in jira_publickey.cer > jira_publickey.pem

I have added the public key in the Application Link administration menu.

What I am doing wrong ?

I have uploaded my maven project here :

https://github.com/chris282/jira_oauth_springboot

I have added :  the error from the server side (Jira), and capture from JIRA Administration panel too.

Do we need to add the certificate to the .jks file of this jira instance to get it working ? Do we need to update the jdk1.8.0_112\jre\lib\security\cacerts file ?

Any idea ?

Please give me some help on this topic, I see there is plenty of guys facing the same issue without resolving it. :(

 

1 answer

0 votes
Dario B Atlassian Team Sep 26, 2019

Hi @Christophe Bordier ,

I may not be the best person to answer this question, however please notice that you are following the documentation for Jira Cloud while it is my understanding that you are using Jira Server instead.

The documentation for Jira Server is the below one:

Can you kindly review above page (and code samples) and let us know if you still have issues?

 

Finally, for the future, please notice that this might not be the best place to get help on development  related questions. In case further help will be needed on this topic, you might want to ask the developers community instead, or open a ticket in the developers service desk:

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

☕️ Monday coffee with Jexo: Weekly Atlassian news roundup | 21st June 2021

Hi community 👋, as every Monday we're bringing you a quick update on what happened in the Atlassian ecosystem last week. There were a few interesting events like for example the announcement of th...

29 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you