KX Community

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

Home Forums KX Solutions Dashboards Direct – Enable SSL for HTTPS

  • Dashboards Direct – Enable SSL for HTTPS

    Posted by jlucid on June 27, 2023 at 12:00 am

    Does anyone know how to enable a secure HTTPS connection when starting  Kx Dashboards Direct?

    I have my SSL Certificate created, but don’t see where I can point the dashboards to use them.

     

    $q dash.q -p 10000

    http://localhost:10000  (default startup using http)

     

    Thanks

    jlucid replied 9 months, 2 weeks ago 1 Member · 2 Replies
  • 2 Replies
  • jlucid

    Member
    June 27, 2023 at 12:00 am

    Ok I see that if I start it with the -E 2 flag it starts looking for the certificate.

    And it is expecting to find a cert in /usr/lib/ssl , so that’s a start

     

    $q dash.q -p 10000 -E 2

    system library:file_ctrl:No such file or directory:../crypto/bio/bss_file.c:297:calling fopen(/usr/lib/ssl/server-crt.pem, r)

  • jlucid

    Member
    June 28, 2023 at 12:00 am

    The solution to this is the following:

    1) Set your environmental variables

    export SSL_KEY_FILE=/path/to/certs/server-key.pem
    export SSL_CERT_FILE=/path/to/certs/server-crt.pem

     

    2) Start the process with the -E 2 flag

    q dash.q -p 10000 -E 2

     

    3)  Put the process running behind a Proxy so that you are not

    accessing it directly using an IP address, you need to access it via a proper

    host name otherwise you wll get errors like the below in the dashboard and it

    wont load properly

    “This request was not upgraded to HTTPS because its URL’s host is an IP address.”

     

     

     

     

Log in to reply.