# Dynatrace Integration with Jira (Add Jira Certificate)

**URL:** <https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344>\
**Category:** Automations\
**Tags:** integrations, jira\
**Created:** [January 29, 2021, 5:52pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344 "2021-01-29T17:52:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemartineza](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jemartineza](https://community.dynatrace.com/u/jemartineza)\
**Post date:** [January 29, 2021, 5:52pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/1 "2021-01-29T17:52:16Z")

</div>

Hi.

I am trying to integrate Dynatrace with Jira.

At the moment of the integration it sends me the message.

_"JIRA integration test failed -_ _Reason: Too many test attempts. Please try again in a few seconds."_

I did the test in Postman to validate the connection with Jira but it sent me the same message.

In Postman I added the Jira certificate and validated again, which was successful.

**How can I add or reference the Jira certificate for the Dynatrace integration?**

 ![28077-1611942163683.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/5/d5c05ed3c8b17e411565a074c5ae5b8144dce6cd.png)

 ![28093-1611942523558.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/c/fc7c12623eceee066d79754aa54668509ec18343.png)

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [February 2, 2021, 9:37am UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/2 "2021-02-02T09:37:04Z")

</div>

If you are using Dynatrace Managed, you should look at this:

[https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/configuration/how-to-add-a-certificate-to-server-trust-store/](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-managed/configuration/how-to-add-a-certificate-to-server-trust-store/)

I don’t think there is any option for adding certificate using gui right now.

Sebastian

---

<div class="post-metadata">

**Author:** ![jemartineza](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jemartineza](https://community.dynatrace.com/u/jemartineza)\
**Post date:** [February 3, 2021, 1:26am UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/3 "2021-02-03T01:26:20Z")

</div>

Hi

When running the steps and executing the command

I get the following error.

**import\_trusted\_certificate.sh archivet.cer certification**

import\_trusted\_certificate.sh: line 3: $‘\r’: command not found

import\_trusted\_certificate.sh: line 6: $‘\r’: command not found

import\_trusted\_certificate.sh: line 16: syntax error near unexpected token `$‘{\r’’

'mport\_trusted\_certificate.sh: line 16: `importCert() {

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [February 3, 2021, 8:14am UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/4 "2021-02-03T08:14:34Z")

</div>

It looks like some unwantend whitechars in sh script. Did you download sh script and copy it via SFTP or copy paste it’s content into terminal?

Sebastian

---

<div class="post-metadata">

**Author:** ![jemartineza](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jemartineza](https://community.dynatrace.com/u/jemartineza)\
**Post date:** [February 3, 2021, 6:52pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/5 "2021-02-03T18:52:31Z")

</div>

Hi.

It was solved by performing the following.

In this way I could make the correct integration of Dynatrace with Jira

Importing the jira certificate to the dynatrace server

The following command is executed to import

**1.- Copy the .cer file to the path**

/opt/dynatrace-managed/server/jre/lib/security

**2.- Execute the following command to import the certificate.**

/opt/dynatrace-managed/server/jre/bin/keytool -import -alias jira -keystore cacerts -file certificateJira.cer -storepass changeit

**3.- The file is generated _cacerts_**

/opt/dynatrace-managed/server/jre/lib/security/_cacerts_

**4.- Replace the cacerts file in the following paths**

PRODUCT\_PATH/server/jre/lib/security/cacerts

PRODUCT\_PATH/security-Gateway/jre/lib/security/cacerts

PRODUCT\_PATH/nodekeeper/jre/lib/security/security/cacerts

**5.- Restart Dynatrace Server.**

/opt/dynatrace-managed/launcher/dynatrace.sh restart

---

<div class="post-metadata">

**Author:** ![jemartineza](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jemartineza](https://community.dynatrace.com/u/jemartineza)\
**Post date:** [February 3, 2021, 6:54pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/6 "2021-02-03T18:54:12Z")

</div>

Steps to add Jira certificate to Dynatrace server

---

<div class="post-metadata">

**Author:** ![jemartineza](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jemartineza](https://community.dynatrace.com/u/jemartineza)\
**Post date:** [February 3, 2021, 6:55pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/7 "2021-02-03T18:55:52Z")

</div>

Hi.

It was solved by performing the following.

In this way I could make the correct integration of Dynatrace with Jira

Importing the jira certificate to the dynatrace server

The following command is executed to import

**1.- Copy the .cer file to the path**

/opt/dynatrace-managed/server/jre/lib/security

**2.- Execute the following command to import the certificate.**

/opt/dynatrace-managed/server/jre/bin/keytool -import -alias jira -keystore cacerts -file certificateJira.cer -storepass changeit

**3.- The file is generated _cacerts_**

/opt/dynatrace-managed/server/jre/lib/security/_cacerts_

**4.- Replace the cacerts file in the following paths**

PRODUCT\_PATH/server/jre/lib/security/cacerts

PRODUCT\_PATH/security-Gateway/jre/lib/security/cacerts

PRODUCT\_PATH/nodekeeper/jre/lib/security/security/cacerts

**5.- Restart Dynatrace Server.**

/opt/dynatrace-managed/launcher/dynatrace.sh restart

---

<div class="post-metadata">

**Author:** ![diana-liev](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@diana-liev](https://community.dynatrace.com/u/diana-liev)\
**Post date:** [November 7, 2021, 4:17pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/8 "2021-11-07T16:17:01Z")

</div>

sorry to hear that you had such a frustrating problem. gee, as a dt user, i must admit i’ve never had such an issue when trying to configure and connect both systems. we’ve done it on multiple occasions for various projects. btw, the last time we made integration between dynatrace and jira, we used an external connector, called [zigiops](https://zigiwave.com/software-integration/jira-dynatrace-integration/?utm_source=dtcommunity&utm_medium=dt-jiradtcom&utm_campaign=dt-jiradtcom&utm_id=6). we used it to transfer issues and custom stories, but it helps with problems &stories, too. helped us a lot since it linked both systems in a snap. we had no issues whatsoever. i’m glad you’ve found a solution. perhaps, next time you may look for such a tool - saves a lot of time and nerves (personally tested 🙂 ).

---

<div class="post-metadata">

**Author:** ![vijaykumar](https://avatars.discourse-cdn.com/v4/letter/v/4491bb/32.png) [@vijaykumar](https://community.dynatrace.com/u/vijaykumar)\
**Post date:** [November 9, 2021, 2:55pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/9 "2021-11-09T14:55:23Z")

</div>

HI team how to avoid duplicate jira creation while we have integrated JIRA and dyntrace integration

---

<div class="post-metadata">

**Author:** ![diana-liev](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@diana-liev](https://community.dynatrace.com/u/diana-liev)\
**Post date:** [November 9, 2021, 3:11pm UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/10 "2021-11-09T15:11:27Z")

</div>

with so little information there one can only guess. do you have a bi-directional integration by logical loops? maybe that’s the cause of the duplication (i guess)? perhaps&nbsp;the logic and mappings of your integration are not configured as they should be?

---

<div class="post-metadata">

**Author:** ![vijaykumar](https://avatars.discourse-cdn.com/v4/letter/v/4491bb/32.png) [@vijaykumar](https://community.dynatrace.com/u/vijaykumar)\
**Post date:** [November 10, 2021, 10:27am UTC](https://community.dynatrace.com/t/dynatrace-integration-with-jira-add-jira-certificate/21344/11 "2021-11-10T10:27:21Z")

</div>

Consider dynatrace will&nbsp; create jiras at some regular interval …Already one JIRA ticket A is there and not solved&nbsp; and JIRA ticket B is created with same content and issue without first issue JIRA ticket A is solved.Now duplicate JIRA ticket are going to be created ,How to solve this from dynatrace end

Thanks

vijaykumark
