iPhone HTTPS 作为网页工作,作为网络应用程序失败
我将 Web 服务器配置为使用 HTTPS 而不是 HTTP。我使用 openssl 生成 X509 证书和私钥。当我使用 FireFox 连接时,它会警告我“不受信任的连接”,并允许我添加例外以继续。当我使用 iPhone 的 Safari 网络浏览器进行连接时,它会执行相同的操作。我点击接受安全提示,效果很好。
我将网页添加到主屏幕,以便可以将其作为网络应用程序运行。当我打开网络应用程序时,我看到以下提示:
无法打开 MyWebApp 无法打开 MyWebApp。错误是:“此服务器的证书无效。您可能正在连接到冒充 mydomainnamehere.com 的服务器”,这可能会使您的机密信息面临风险。:”。关闭或重试
如果我点击“关闭”,网络应用程序将关闭。如果我点击“重试”,我会再次看到提示,无法选择信任该网站并继续。我想使用 HTTPS 来加密该网站。这是我用来远程访问文件的私人站点,不适合公共使用。
I configured my web server to use HTTPS instead of HTTP. I used openssl to generate an X509 certificate and private key. When I connect using FireFox it warns me of an "Untrusted Connection" and allows me to add an exception to continue. When I connect using my iPhone's Safari web browser it does the same thing. I hit accept to the security prompt and it works fine.
I add the web page to my home screen so that I can run it as a web-app. When I open the web-app I see the following prompt:
Cannot Open MyWebApp MyWebApp could not be opened. The error was: "The certificate for this server is invalid. You might be connecting to a server that is pretending to be mydomainnamehere.com" which could put your confidential information at risk.:". CLOSE or RETRY
If I hit close the web-app closes. If I hit retry I see the prompt again. There is no option to trust the site and continue. How can I get this to work? I'd like to use HTTPS to encrypt the sensitive data. It is a private site I use to access files remotely. It is not intended for public use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有两种解决方案。 1) 使用受信任的证书,2) 将不受信任的证书添加到您的 iPad。这样您的 iPad 就会将其视为可信的。
下载证书(例如使用 Chrome),将证书作为电子邮件的附件。在 iPad 上打开此电子邮件,然后单击附件/证书并安装它。就是这样!
There are two solution. 1) use a trusted certificate and 2) is to add the untrusted certificate to your iPad. This way your iPad will consider it as trusted.
Download the certificate (with Chrome for example), put the cert as an attachment on an email. Open this email on your iPad and click the attachment/cert and install it. Thats it!