<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting and using the certificate file to launch locally app server - custom Dynatrace applications (Windows - Google Chrome) in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Getting-and-using-the-certificate-file-to-launch-locally-app/m-p/267842#M1554</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;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&amp;nbsp; variable&amp;nbsp;&lt;FONT color="#FF0000"&gt;$ENV:NODE_TLS_REJECT_UNAUTHORIZED="0"&lt;/FONT&gt;&lt;BR /&gt;The simple way getting the certificate is from Dynatrace app URL icon&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chris_cho_0-1737177657547.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25818i95ED5E1002101847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chris_cho_0-1737177657547.png" alt="chris_cho_0-1737177657547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Make sure you select the top/root of&amp;nbsp;hierarchies [&lt;STRONG&gt;Certificate Hierarchy&lt;/STRONG&gt;] and [&lt;STRONG&gt;Certificate Fields&lt;/STRONG&gt;], from [&lt;STRONG&gt;Details&lt;/STRONG&gt;] tab, and click on [&lt;STRONG&gt;Export&lt;/STRONG&gt;] button, saving the certificate under a folder and name that you will use later setting up the environment variable&amp;nbsp;&lt;STRONG&gt;$ENV:NODE_EXTRA_CA_CERTS&lt;/STRONG&gt;="&lt;STRONG&gt;&lt;EM&gt;&amp;lt;selected_path&amp;gt;&lt;/EM&gt;\&lt;EM&gt;&amp;lt;selected_file_name&amp;gt;.crt&lt;/EM&gt;&lt;/STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;Once the certs environment variable is set, you can launch locally the app server, with:&lt;BR /&gt;&lt;STRONG&gt;npx dt-app dev&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this way helps others, too.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 08:14:06 GMT</pubDate>
    <dc:creator>chris_cho</dc:creator>
    <dc:date>2025-01-20T08:14:06Z</dc:date>
    <item>
      <title>Getting and using the certificate file to launch locally app server - custom Dynatrace applications (Windows - Google Chrome)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Getting-and-using-the-certificate-file-to-launch-locally-app/m-p/267842#M1554</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;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&amp;nbsp; variable&amp;nbsp;&lt;FONT color="#FF0000"&gt;$ENV:NODE_TLS_REJECT_UNAUTHORIZED="0"&lt;/FONT&gt;&lt;BR /&gt;The simple way getting the certificate is from Dynatrace app URL icon&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chris_cho_0-1737177657547.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25818i95ED5E1002101847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="chris_cho_0-1737177657547.png" alt="chris_cho_0-1737177657547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Make sure you select the top/root of&amp;nbsp;hierarchies [&lt;STRONG&gt;Certificate Hierarchy&lt;/STRONG&gt;] and [&lt;STRONG&gt;Certificate Fields&lt;/STRONG&gt;], from [&lt;STRONG&gt;Details&lt;/STRONG&gt;] tab, and click on [&lt;STRONG&gt;Export&lt;/STRONG&gt;] button, saving the certificate under a folder and name that you will use later setting up the environment variable&amp;nbsp;&lt;STRONG&gt;$ENV:NODE_EXTRA_CA_CERTS&lt;/STRONG&gt;="&lt;STRONG&gt;&lt;EM&gt;&amp;lt;selected_path&amp;gt;&lt;/EM&gt;\&lt;EM&gt;&amp;lt;selected_file_name&amp;gt;.crt&lt;/EM&gt;&lt;/STRONG&gt;"&lt;BR /&gt;&lt;BR /&gt;Once the certs environment variable is set, you can launch locally the app server, with:&lt;BR /&gt;&lt;STRONG&gt;npx dt-app dev&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this way helps others, too.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 08:14:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Getting-and-using-the-certificate-file-to-launch-locally-app/m-p/267842#M1554</guid>
      <dc:creator>chris_cho</dc:creator>
      <dc:date>2025-01-20T08:14:06Z</dc:date>
    </item>
  </channel>
</rss>

