We have embedded electronic cards (C++ applications) which have an unsecured websocket server implementation, therefore with a (ws) connection.
We cannot install an SSL certificate.
Our problem is that the balena browser constantly redirects the http connection to https and therefore the ws connection cannot work.
What solutions can we have to use the websocket connection insecurely through the Balena browser?
Hello, does this behavior happen on regular Chromium without the browser block?
Perhaps there is a Chromium switch you can set using the FLAGS / EXTRA_FLAGS variable on the browser block to make it work the way you want: List of Chromium Command Line Switches « Peter Beverloo
Yes, everything makes us believe that this is a limitation of chromium.
After some research, we concluded that browsers reject self-signed certificates.
By starting a websocket server with a pkcs12 key, and generating an authority-signed certificate for the client side we managed to resolve the issue in a development environment.
We will try to have the same behavior on a balena environment