kimchi-project / wok

A cherrypy framework for multi-purpose plug-ins
https://github.com/kimchi-project/wok/releases/latest
Other
236 stars 77 forks source link

Centos 7 certificates not being created #229

Open VamPikmin opened 6 years ago

VamPikmin commented 6 years ago

Centos 7 minimal with all prerequisites installed cloned the master branch ./autogen.sh --system make make install

/etc/wok missing dhparams.pem wok-cert.pem wok-key.pem

nginx fails to start

I had to manually generate the certificates openssl req -x509 -newkey rsa:4096 -keyout /etc/wok/wok-key.pem -out /etc/wok/wok-cert.pem -days 365 -nodes -subj "/C=US/CN=wok/O=kimchi-project.org" >/dev/null 2>&1 || :

openssl dhparam 2048 -out /etc/wok/dhparams.pem not sure if this is correct

nginx still fails to start because of selinux, so I setenforce 0

After I install the kimchi plugin and copy the Windows 7 iso to /var/lib/kimchi/ I can create the template chown qemu:libvirt Windows7.iso

When I try to view the console I get Server disconnected (code: 1006)

Sep 18 14:00:31 centos7.localdomain wokd[9808]: INFO:cherrypy.access.59435856:192.168.158.24 - - [18/Sep/2017:14:00:31] "GET /plugins/kimchi/novnc/include/jsunzip.js HTTP/1.0" 200 19367 "https://192.168.158.38:8001/plugins/kimchi/novnc/vnc_auto.html?port=8001&path=/websockify?token=V2luN3ZuYw&encrypt=1" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0"

Spice gives me WebSocket error: Can't connect to websocket on URL: wss://192.168.158.38:8001/websockify?token=d2luZG93czcuMTUwNTcwNzA3NTg2NC12bS0x

[object Event]

kerberjg commented 6 years ago

I had a similar problem, running

sudo service wokd stop
sudo python src/wokd

And rebooting helped

saulhuerta commented 6 years ago

...when you python src/wokd a certified wil be created. Than certified will be used by nginx. You need to run in this way at least for the first time, then, you can run normally.

VamPikmin commented 6 years ago

Thanks for your help guys, I haven't had time to revisit this

bit-bat commented 5 years ago

I used the .deb file to install and having same issue that pem file is not found by nginx. I don't have the source. Where can I find this src/wokd?

Starting wokd from /usr/bin doesn't create the pem file.