iiab
iiab copied to clipboard
Test offline https/SSL/TLS NGINX with self-signed cert instead of LetsEncrypt.org ?
@tim-moody: @deldesir is interested if you or @jvonau make progress here figuring out what's possible?
For ZIM files from https://youzim.it and in general!
Ref: #2762
Four relevant tickets at https://github.com/kiwix/kiwix-hotspot :
- Added HTTPS support for all vhosts (PR 599, merged)
- Added HTTPS tutorial for SW ZIM (PR 603, merged)
- Based on: Display tutorial to invite switching to HTTPs for SW based ZIM (546, closed)
- Hotspot does not read zimit-generated files (608)
I tried the following:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
nano server.conf after listen 80;
listen 443 ssl;
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
The following on a medium vm were accessible over https:
• Home • Kiwix • Module • Maps • Sugarizer • Nextcloud • WP • Calibre web
kalite was not accessible via the menu. It is not proxied and probably requires port 80. The problem is js-menu creates a link with the current protocol, so tried https when only http is available.
I'm less sure about the kalite problem as it is not working with http on this vm, so there could be another issue.
kalite runs on port 8008 and never requires port 80, I'll go with the curl script was not used, now this machine has an incomplete kalite install https://github.com/iiab/iiab/issues/2863#issuecomment-887426453 due to the kalite role|iiab split of commands needed.
I'll go with the curl script was not used, now this machine has an incomplete kalite install
probably right