How to run a PWA in a Intranet without a trusted SSL certificate?

核能气质少年 提交于 2020-08-01 12:40:28

问题


I'm setting up a Intranet environment to run a PWA for business purposes in future. But I encountered a problem regarding SSL certificates.

In my plan:

  • Everything is on a local network (maybe with no internet access), with a dedicated server in it (i'm using ubuntu server),
  • the user access the main page with a computer or phone, in which he install a PWA on his device.

PWA needs HTTPS to work, and I can self-sign certificates (i'm doing it for testing), but it's not a solution for implementating the app because it generate a security error on every browser on the planet with this method.

Importing certificates to browser is not a solution for me because it's a hassle to import the certificate on every user browser (it isn't user friendly), also it's impossible in android without root.

I'm wanting to create a PWA that needs the minimum advanced user help to work, so importing certificates and doing work-arounds is a no no.

Its possible to run a PWA without this certificate problem or I should drop it and begin a standard web app for now ?


回答1:


HTTPS is a core requirement for running a PWA.
Certificates are no longer that expensive.
Just figure that into your yearly hosting costs.
Until you get your HTTPS running with a cert, perhaps you could use something like https://glitch.com/ for free testing



来源:https://stackoverflow.com/questions/55671517/how-to-run-a-pwa-in-a-intranet-without-a-trusted-ssl-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!