18 Jan 2025
05:01 AM
- last edited on
20 Jan 2025
08:14 AM
by
MaciejNeumann
Hello,
After weeks, trying to have a cleaner and more stable app development environment, and checking others' messages and replies, I found the way avoiding to disable the reject of unauthorized calls set through environment variable $ENV:NODE_TLS_REJECT_UNAUTHORIZED="0"
The simple way getting the certificate is from Dynatrace app URL icon
Make sure you select the top/root of hierarchies [Certificate Hierarchy] and [Certificate Fields], from [Details] tab, and click on [Export] button, saving the certificate under a folder and name that you will use later setting up the environment variable $ENV:NODE_EXTRA_CA_CERTS="<selected_path>\<selected_file_name>.crt"
Once the certs environment variable is set, you can launch locally the app server, with:
npx dt-app dev
I hope this way helps others, too.