cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace App install error SELF_SIGNED_CERT_IN_CHAIN

Sachinpai
Participant

I was trying to follow the Sample App creation document Five minutes to your first app | Dynatrace Developer

Getting error while running 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'

4 REPLIES 4

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

Hi @Sachinpai 

 

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

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

 

On Linux/unix, run following command: 

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

 

Please let me know if this has solved your issue

 

Best,
Sini

Thanks @sinisa_zubic  . Solution worked.

In PowerShell, I tried setting 

$Env:NODE_TLS_REJECT_UNAUTHORIZED='0'

and then running 

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

 

sinisa_zubic
Dynatrace Champion
Dynatrace Champion

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

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

 

Featured Posts