Can a client script provide to the browser a certificate to accept in a wss://
connection? The WebSocket
constructor does not seem to have many options.
(I am designing an IoT server that lets the owner share access with other users by emailing them an html file that includes a connection script and credentials. To secure communications I could of course use crypto.subtle
, but SSL would be more easily accepted if it can work. The users definitely do not want to do any kind of browser configuration, and operation cannot be dependent on Internet access).