As an accompanyment to a web application we plan to have a node application running as a windows service running on the client computer. This will run a small web server which will listen on port XXXX for information sent from the web application (so the web application will do an Ajax POST to
http://localhost:XXXX). The node application has access to do things that a browser based application cannot so it helps us with certain integrations.
The problem is that the web application is running as https and will not allow a POST request to happen to our http service that is running locally.
My questions are:
- Is it possible to create a self-signed cert for
https://localhostso that the user doesn't need to then trust the certificate every time they log on to the computer.
I have tried creating the self-signed cert and adding it to the trusted authority list but I still need to browse to the
http://localhost:XXXX in a browser and choose to trust the certificate before I can get the web application to successfully communicate with the node application.
- Is there any other way around this?