Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test offline https/SSL/TLS NGINX with self-signed cert instead of LetsEncrypt.org ? #2811

Open
holta opened this issue Jun 3, 2021 · 5 comments

Comments

@holta
Copy link
Member

holta commented Jun 3, 2021

@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

@holta
Copy link
Member Author

holta commented Jun 3, 2021

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)

@holta holta modified the milestones: 7.2, 8.0 Jun 18, 2021
@tim-moody
Copy link
Contributor

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.

@tim-moody
Copy link
Contributor

I'm less sure about the kalite problem as it is not working with http on this vm, so there could be another issue.

@jvonau
Copy link
Contributor

jvonau commented Jul 28, 2021

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 #2863 (comment) due to the kalite role|iiab split of commands needed.

@tim-moody
Copy link
Contributor

I'll go with the curl script was not used, now this machine has an incomplete kalite install

probably right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants