Hi,
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.
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.
https://koopjs.github.io/blog/2021/01/19/koop-cli-v1-1-0-release/
https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/
Creating an issue in github as well (https://github.com/koopjs/koop/issues/376).
Tagging @AlexanderHarris to get help.
Solved! Go to Solution.
I also couldn't get the HTTPS server up per the https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/ instructions. But I got things working with the following:
I think that's it, hope it helps..
I also couldn't get the HTTPS server up per the https://nodejs.org/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server/ instructions. But I got things working with the following:
I think that's it, hope it helps..
Thank you KC! This solution has worked for me!