x-cubed / event-store-client

JS client library for connecting to Event Store over TCP/IP
The Unlicense
71 stars 24 forks source link

Tls connection #36

Closed morrislaptop closed 5 years ago

morrislaptop commented 5 years ago

Add units tests from #35

morrislaptop commented 5 years ago

@x-cubed what do you think? CC @Digi-Cazter

morrislaptop commented 5 years ago

Going to switch to https://github.com/nicdex/node-eventstore-client (supports TLS and Persistent Subscriptions)

x-cubed commented 5 years ago

Thanks @morrislaptop, that looks good.

It's a bit concerning that the tests need to disable NODE_TLS_REJECT_UNAUTHORIZED, but I think that's the simplest approach for the moment. We'd need to generate a new certificate and install it as a trusted root in a Docker container running the client to get around that.