how does a client server make connection to TLS enabled KDB server?

https://learninghub.kx.com/forums/topic/how-does-a-client-server-make-connection-to-tls-enabled-kdb-server

We have enabled TLS on KDB servers; it is tested good between KDB servers via TLS.

now one client server wants to load data from KDB. how does it make connect to TLS enabled KDB?

we tried to use the following to make connection from #C side, but failed. any suggest?

tcps://hostname:port[:username:password]

Thanks for reply. We did follow that doc to set up this, but failed to setup client mode:

  • connection is good between two TLS-enabled KDB servers;

-but from a client server like an algo/pricing server, we cannot make connection to the TLS-enabled server using the following. Can anybody suggest a correct way for that?

new kx.c("tcps://hostserver, port, Environment.UserName + ":mypassword");
q)h:hopen`:tcps://hostname:port[:username:password]

Hi,

 

There is a version of the C# interface here https://github.com/KxSystems/csharpkdb

that has an optional useTLS parameter: csharpkdb/kx/c.cs at main KxSystems/csharpkdb (github.com)

 

Thanks,

Eoghan

Hi ,

I found this on code.kx.com which might be of some help :SSL/TLS Knowledge Base kdb+ and q documentation

It has different sections for TLS in server mode and client mode, with options for different OS.

Hope this helps!

Laura