web icon indicating copy to clipboard operation
web copied to clipboard

Need a way to set SSL encryption on KiOS install

Open espressobeanies opened this issue 7 years ago • 7 comments

OS: KiOS v2.6.0 Platform: Raspberry Pi 2

I'm not sure what the operating system KiOS is using, however I need a way to set an SSL certificate for the UI login. I'm not seeing any Apache or NGINX config files to modify. There is an SSL directory in /etc/.

espressobeanies avatar Feb 15 '18 00:02 espressobeanies

hmm, yeah but /etc/ is not writable. I'll create a PR for this. Can you explain me in a couple of bullets, how you want to achieve setting up your SSL connection. By the way we use Nginx.

cedricve avatar Feb 17 '18 09:02 cedricve

Hi Cedric,

I was thinking more of a self-signed certificate for the web interface to encrypt the connection so that login credentials aren't sent via clear-text.

espressobeanies avatar Feb 21 '18 21:02 espressobeanies

Hello all,

I'm not an expert but have seen this matter discussed on other projects. One option is as follows:

https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/

onshisan avatar Mar 23 '18 19:03 onshisan

(PS: I really like this project, congratulations @cedricve!)

onshisan avatar Mar 23 '18 19:03 onshisan

thanks for sharing @onshisan, we need to implement this!

cedricve avatar Mar 23 '18 19:03 cedricve

Cedric, I did some testing on my KiOS install (v2.6.0) and found that in order for SSL in NGINX to work, the "ngx_http_ssl_module" needs to be added. Otherwise it won't read any of the "ssl..." directives in '/etc/nginx/nginx.conf'. If you were going to look at doing an automated process to generate SSL certs, the 'openssl' package also needs to be present as well. Thanks.

espressobeanies avatar Mar 30 '18 21:03 espressobeanies

@espressobeanies thanks for sharing! can we create a PR to integrate this in KiOS? https://github.com/kerberos-io/kios/blob/master/package/nginx/nginx-php.conf

cedricve avatar Mar 31 '18 05:03 cedricve