Release Unsecured Connection with Websocket

Asked

Viewed 44 times

-1

Good afternoon,

Today we have a PWA (https) system that needs to make the non-secure connection with an embedded application, the same with ip itself.

I wonder if this communication is possible and how I could be configuring it. Since searching the internet I can not find any information about it.

We tried to put a self-signed certificate on the embedded side, but we are getting this error "Error in Connection establishment: net::ERR_CERT_AUTHORITY_INVALID".

Someone could help with that?

Thanks in advance.

  • Dear Lucas in the answers linked above is informed that only with secure connection. This is the proposal of the PWA, unlike this would not be valid nor safe and would be a problem for the proposal.

1 answer

1

If you use https on the web, all other connections must be secure. There is no way around the problem of self-signed, since the PWA will not allow such communication.

One solution I see is to use a public domain for the application and generate a valid certificate for it (Lets Encrypt, for example). The embedded application would need a fixed IP to correctly resolve the DNS (or a DDNS), I don’t know if this is possible in the scope of your project but would solve your certificate problem.

Example:
PWA gets into https://app.examplo.com.br
Embarked on https://device123.intranet.examplo.com.br

  • Thank you Paulo, but the problem is that the embedded goes up the own WI-FI network where I connect to carry out the communications. I will validate if it is possible to perform some DNS configuration

Browser other questions tagged

You are not signed in. Login or sign up in order to post.