cancel
Showing results for 
Search instead for 
Did you mean: 

Dashboards Direct - Enable SSL for HTTPS

jlucid
Contributor

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

1 ACCEPTED SOLUTION

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."

 

 

 

 

View solution in original post

2 REPLIES 2

jlucid
Contributor

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)

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."