# Dashboards Direct - Enable SSL for HTTPS

**URL:** <https://forum.kx.com/t/dashboards-direct-enable-ssl-for-https/13650>\
**Category:** Community Support\
**Tags:** dashboards\
**Created:** [June 27, 2023, 12:00am UTC](https://forum.kx.com/t/dashboards-direct-enable-ssl-for-https/13650 "2023-06-27T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerlucid](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jerlucid](https://forum.kx.com/u/jerlucid)\
**Post date:** [June 27, 2023, 12:00am UTC](https://forum.kx.com/t/dashboards-direct-enable-ssl-for-https/13650/1 "2023-06-27T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/dashboards-direct-enable-ssl-for-https](https://learninghub.kx.com/forums/topic/dashboards-direct-enable-ssl-for-https)

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.

&nbsp;

$q dash.q -p 10000

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

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![jerlucid](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jerlucid](https://forum.kx.com/u/jerlucid)\
**Post date:** [June 28, 2023, 12:00am UTC](https://forum.kx.com/t/dashboards-direct-enable-ssl-for-https/13650/2 "2023-06-28T00:00:00Z")

</div>

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

&nbsp;

1. Start the process with the -E 2 flag

q dash.q -p 10000 -E 2

&nbsp;

1. 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.”

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![jerlucid](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jerlucid](https://forum.kx.com/u/jerlucid)\
**Post date:** [June 27, 2023, 12:00am UTC](https://forum.kx.com/t/dashboards-direct-enable-ssl-for-https/13650/3 "2023-06-27T00:00:00Z")

</div>

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

&nbsp;

$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)
