KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums kdb+ how does a client server make connection to TLS enabled KDB server?

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

    Posted by renbright on August 4, 2023 at 12:00 am

    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]
    renbright replied 9 months, 2 weeks ago 3 Members · 3 Replies
  • 3 Replies
  • Laura

    Administrator
    August 7, 2023 at 12:00 am

    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

  • renbright

    Member
    August 11, 2023 at 12:00 am

    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]
  • eohara_kdb

    Member
    August 11, 2023 at 12:00 am

    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

Log in to reply.