node-capnp icon indicating copy to clipboard operation
node-capnp copied to clipboard

connect through TLS with authenticationinfo

Open gibran opened this issue 7 years ago • 1 comments

I didn't see if it is possible use node-capnp to connect through RPC over TLS. I need to set my authentication info to handshake negotiate, but I'm not getting to do it.

I'm using this .capnp https://github.com/Internet-of-People/mercury-rust/tree/develop/home-protocol/protocol. The server was writing in Rust and I'm trying to create a client in node.

There is some possibility to use this package?

Thanks

gibran avatar Aug 17 '18 22:08 gibran

Hi Gibran,

Unfortunately this isn't directly supported in the library. For now, what you will need to do is use a loopback connection (e.g. back to the same process), and then arrange to proxy data over a TLS connection from there.

kentonv avatar Aug 17 '18 22:08 kentonv