# Dynatrace App install error SELF\_SIGNED\_CERT\_IN\_CHAIN

**URL:** <https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit\
**Created:** [June 17, 2024, 6:47pm UTC](https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160 "2024-06-17T18:47:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachinpai](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sachinpai](https://community.dynatrace.com/u/Sachinpai)\
**Post date:** [June 17, 2024, 6:47pm UTC](https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160/1 "2024-06-17T18:47:37Z")

</div>

I was trying to follow the Sample App creation document&nbsp;[Five minutes to your first app | Dynatrace Developer](https://developer.dynatrace.com/getting-started/quickstart/).

Getting error while running&nbsp;npx dt-app@latest create --environment-url \<URL\>

Searching for template repositories…Error reading repository archive: TypeError: fetch failed  
at node:internal/deps/undici/undici:12618:11  
at process.processTicksAndRejections (node:internal/process/task\_queues:95:5) ause: Error: self-signed certificate in certificate chain  
at TLSSocket.onConnectSecure (node:\_tls\_wrap:1659:34)  
at TLSSocket.emit (node:events:517:28)  
at TLSSocket.\_finishInit (node:\_tls\_wrap:1070:8)  
at ssl.onhandshakedone (node:\_tls\_wrap:856:12) {  
code: ‘SELF\_SIGNED\_CERT\_IN\_CHAIN’

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [June 19, 2024, 9:06am UTC](https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160/2 "2024-06-19T09:06:15Z")

</div>

Hi&nbsp;[@Sachinpai](https://community.dynatrace.com/user/71933)

Maybe there is somewhere a firewall in place which does SSL termination and therefore you are getting this error.  
To disable ssl check you can do following

on Windows (powershell), run following command

```markup
$Env:NODE_TLS_REJECT_UNAUTHORIZED='0'; & npx dt-app@latest create

```

On Linux/unix, run following command:

```markup
NODE_TLS_REJECT_UNAUTHORIZED='0' npx dt-app@latest create

```

Please let me know if this has solved your issue

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![Sachinpai](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sachinpai](https://community.dynatrace.com/u/Sachinpai)\
**Post date:** [June 20, 2024, 1:43pm UTC](https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160/3 "2024-06-20T13:43:53Z")

</div>

Thanks&nbsp;[@sinisa\_zubic](https://community.dynatrace.com/user/38283)&nbsp; . Solution worked.

---

<div class="post-metadata">

**Author:** ![aaron2](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@aaron2](https://community.dynatrace.com/u/aaron2)\
**Post date:** [July 23, 2024, 4:04pm UTC](https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160/4 "2024-07-23T16:04:47Z")

</div>

In PowerShell, I tried setting

```auto
$Env:NODE_TLS_REJECT_UNAUTHORIZED='0'

```

and then running

```auto
npx dt-app@latest create

```

and was left with the same error. Any ideas? I am stuck here and wondering why it worked for everyone else.

 ![aaron2_0-1721750665967.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/643235e6ff7baecfb2f7467716cd346607b8be52.png)

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [July 25, 2024, 9:38am UTC](https://community.dynatrace.com/t/dynatrace-app-install-error-self-signed-cert-in-chain/46160/5 "2024-07-25T09:38:22Z")

</div>

you need to set the environment variable and run the command in the same line. In your screen shot I see you have separated that.

Just copy this into powershell and hit enter

```markup
$Env:NODE_TLS_REJECT_UNAUTHORIZED='0'; & npx dt-app@latest create

```
