Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access localhost via https with a valid certificate

We have a Web-Application that should interact with a desktop application that has a helper tool character (e.g. no setup, no need for admin privileges). The helper is listening via http/https on a simple port bound to localhost.

The Web-Application uses a SSL certificate. Every customer has a machine on its own for his data. For claryfication: The Web-Application is running on a server, serving one customer but multiple people.

The problem is, the Web-Application cannot reach the helper tool via https (using image or iframe). The main issue is, that the local webserver listening on localhost has no signed certificate. So the web browser is blocking the interaction.

Is there any way to get around this trouble? I think, I cannot get a certificate for localhost, because no one would sign it.

I know, that I cannot use XMLHttpRequest for this, but that's not the point.

The goal is to have a customer friendly - no install - just works - solution. The customer should not do ANY configuration. Just downloading and starting the tool. We'd like to have a direct communication to the tool (e.g. no outbound direction to the web server).

Is the any solution for this?

like image 762
SuperNova Avatar asked Mar 08 '26 16:03

SuperNova


1 Answers

If it is Active-directory environment , you can create your own CA and sign certificates and distribute them across the domain. also you can add to trusted sites through domain policies this way client side you don't need to configure anything .

like image 150
sreekanth balu Avatar answered Mar 10 '26 10:03

sreekanth balu