<?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 Re: HTTPS Feature is not working in Koop JS in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069680#M5915</link>
    <description>&lt;P&gt;Thank you KC! This solution has worked for me!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 04:03:34 GMT</pubDate>
    <dc:creator>PrasanthRamachandran2</dc:creator>
    <dc:date>2021-06-18T04:03:34Z</dc:date>
    <item>
      <title>HTTPS Feature is not working in Koop JS</title>
      <link>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069534#M5911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have developed an app with Koop JS and created a custom provider. Everything is working however the URL workings only on HTTP. So, I have created PEM files for SSL and CA certificates and placed them in the app folder. Then run the 'Koop Serve' command with SSL Cert and SSL key attributes. However, the link works on HTTP, not on HTTPS. So, to make sure there is no issue with the certificate, I have created a simple NODE JS app with an HTTPS node js module. Everything is working fine with CA and SSL certificate files.&lt;/P&gt;&lt;P&gt;So, just wanted to see if I am missing anything here to get HTTPS working on Koop JS applications. Below links are I used as a reference. Let me know if you want me to share any screenshots or code files for this issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://koopjs.github.io/blog/2021/01/19/koop-cli-v1-1-0-release/" target="_blank" rel="nofollow noopener"&gt;https://koopjs.github.io/blog/2021/01/19/koop-cli-v1-1-0-release/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/" target="_blank" rel="nofollow noopener"&gt;https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creating an issue in github as well (&lt;A href="https://github.com/koopjs/koop/issues/376)" target="_blank" rel="noopener"&gt;https://github.com/koopjs/koop/issues/376)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Tagging&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/37511"&gt;@AlexanderHarris&lt;/a&gt;&amp;nbsp;to get help.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 19:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069534#M5911</guid>
      <dc:creator>PrasanthRamachandran2</dc:creator>
      <dc:date>2021-06-17T19:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS Feature is not working in Koop JS</title>
      <link>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069549#M5912</link>
      <description>&lt;P&gt;I also couldn't get the HTTPS server up per the&amp;nbsp;&lt;A href="https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/" target="_blank" rel="noopener"&gt;https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/&lt;/A&gt;&amp;nbsp;instructions.&amp;nbsp; But I got things working with the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I modified app/src/index.js...&lt;UL&gt;&lt;LI&gt;Add in the following constants after the first chunk of constants:&lt;UL&gt;&lt;LI&gt;const fs = require('fs-extra')&lt;BR /&gt;const https = require('https')&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Comment out the last line (koop.server.listen..) and put in the following in its place:&lt;UL&gt;&lt;LI&gt;https.createServer(&lt;BR /&gt;{&lt;BR /&gt;key: fs.readFileSync('key.pem'),&lt;BR /&gt;cert: fs.readFileSync('cert.pem')&lt;BR /&gt;},&lt;BR /&gt;koop.server&lt;BR /&gt;).listen(config.port, () =&amp;gt; {&lt;BR /&gt;koop.log.info(`Server listening at &lt;A href="https://localhost:${config.port" target="_blank" rel="noopener"&gt;https://localhost:${config.port&lt;/A&gt;}`)&lt;BR /&gt;})&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I placed my key.pem and cert.pem in the app folder where I would be calling the koop serve&amp;nbsp; (don't need to add any parameters) command from.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I think that's it, hope it helps..&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 19:24:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069549#M5912</guid>
      <dc:creator>KC</dc:creator>
      <dc:date>2021-06-17T19:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPS Feature is not working in Koop JS</title>
      <link>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069680#M5915</link>
      <description>&lt;P&gt;Thank you KC! This solution has worked for me!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 04:03:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/https-feature-is-not-working-in-koop-js/m-p/1069680#M5915</guid>
      <dc:creator>PrasanthRamachandran2</dc:creator>
      <dc:date>2021-06-18T04:03:34Z</dc:date>
    </item>
  </channel>
</rss>

