-
Hello! I wonder if anyone could help me with NATS TLS connection.
Is there any way that I can connect to the NATS server using TLS from the browser with these limitations? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
nats.ws uses a w3c websocket - so it will be require certificates that are valid if you use TLS, so as you say, there's no way to make the connection be considered secure given your constraints. With that said, depending on the runtime, you may be able to say which CA is valid (for the runtime) which transitively will be valid for the websocket. But this also means that all browsers would have to have your CA and trust it. |
Beta Was this translation helpful? Give feedback.
nats.ws uses a w3c websocket - so it will be require certificates that are valid if you use TLS, so as you say, there's no way to make the connection be considered secure given your constraints. With that said, depending on the runtime, you may be able to say which CA is valid (for the runtime) which transitively will be valid for the websocket. But this also means that all browsers would have to have your CA and trust it.