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

Dynatrace App install error SELF_SIGNED_CERT_IN_CHAIN

Sachinpai
Observer

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'

2 REPLIES 2

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.

Featured Posts