Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira OAuth Problem

Martin Lyubenov March 24, 2021

Hello guys,

We have been experiencing strange behaviour of the Jira OAuth lately and was hoping if you could provide some help.

We have had this application where it syncs certain tasks to Jira and to achieve this we had authentication with Jira.

Lately however, we noticed that exception was being thrown every time there was an attempt to authenticate the user.
We are receiving an error: 
Signature length not correct: got 128 but was expecting 256

This happens when we send a request to Jira for token.

When we were developing the app, we used this guide: https://developer.atlassian.com/server/jira/platform/oauth/


This problem is recent, and the code has not been changed on our side, that is why I am guessing something has been changed on Jira's side.
We have bumped a few dependencies, that have been outdated, but still no resolution.

Any help is greatly appreciated!

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
Martin Lyubenov March 25, 2021

To anyone who faces the same problem and have been following the guide I have stated: replace the command of generating the key:

  1. openssl genrsa -out jira_privatekey.pem 1024

with

  1. openssl genrsa -out jira_privatekey.pem 2048

Suggest an answer

Log in or Sign up to answer