2023.06.27 03:44 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
2023.06.28 02:48 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."
2023.06.27 03:56 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)
2023.06.28 02:48 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."
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.