如何在没有可信 SSL 证书的情况下在内网运行 PWA? [英] How to run a PWA in a Intranet without a trusted SSL certificate?

查看:79
本文介绍了如何在没有可信 SSL 证书的情况下在内网运行 PWA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个 Intranet 环境,以便将来出于业务目的运行 PWA.但是我遇到了一个关于 SSL 证书的问题.

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

在我的计划中:

  • 一切都在本地网络上(可能无法访问互联网),其中有一个专用服务器(我使用的是 ubuntu 服务器),
  • 用户使用计算机或手机访问主页,并在其设备上安装 PWA.

PWA 需要 HTTPS 才能工作,我可以对证书进行自签名(我这样做是为了测试),但这不是实现应用程序的解决方案,因为它会在每个应用程序上生成安全错误使用这种方法在地球上的浏览器.

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.

将证书导入浏览器对我来说不是解决方案,因为在每个用户浏览器上导入证书很麻烦(这对用户不友好),而且在没有 root 的情况下在 android 中也不可能.

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.

我想创建一个 PWA,它需要最低限度的高级用户帮助才能工作,因此导入证书和进行变通是不行的.

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.

是否可以在没有证书问题的情况下运行 PWA,或者我应该暂时放弃它并开始一个标准的 Web 应用程序?

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

推荐答案

HTTPS 是运行 PWA 的核心要求.
证书不再那么昂贵.
只需将其计入您的年度托管费用即可.
在您使用证书运行 HTTPS 之前,也许您可​​以使用 https://glitch.com/ 之类的东西免费测试

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

这篇关于如何在没有可信 SSL 证书的情况下在内网运行 PWA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆