Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,469
Community Members
 
Community Events
184
Community Groups

Using certificate-based authentication with JIRA REST Java Client Library

Hi, 

I have an existing Jira instance, for which the REST API is protected by certificate-based authentication (this is performed at the Apache front-end level).

I'm writing a Java-based application that is interacting with Jira, and I plan to use the JIRA REST Java Client Library.

How can I use certificate-based authentication with JIRA REST Java Client Library?

 

Regards,

1 answer

1 accepted

1 vote
Answer accepted

I had to change a few lines of code of the Atlassian HttpComponents Java library. Now it loads the certificate for the keystore referenced by the standard  javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword JVM properties.

How could I share my code?

Hello Fabien,

We are having similar problems. Our Jira login is done through SAML with a modification of the Jira login classes by some custom classes, everything works fine except for two cases:

- The REST API calls through the https route return a 200 but from the custom login screen.
- Some gadgets in the dashboards fail because the internal calls inside the tool are failing because internally it returns 200 but in reality it is an error because the gadget does not load correctly.

Could you share what modifications you made?

Thanks in advance!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events