Skip to content

Browser TLS With custom server certificate. #237

Answered by aricart
lhamt asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lhamt
Comment options

Answer selected by lhamt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants