授予 Android 应用程序连接到“未经验证的服务器”的权限

发布于 2025-01-03 12:04:45 字数 1079 浏览 3 评论 0原文

我正在尝试将广告放入 Android 应用程序的 AIR 中。我在我的网站上的 html 中托管该添加(由 godaddy 托管,但我拥有完全控制权),然后将该 html 加载到应用程序中的 StageWebView 对象(相当于 iframe 的 AIR)中。
这有效!
该广告在手机上显示得很漂亮,但是每次运行应用程序时我都会收到此弹出窗口:

应用程序连接的服务器未经验证。
服务器:http://www.mywebsite.com/ad.html
证书:
问题至:
通用名称:www.google.com
组织单位:
发布者:Thawte Consulting (Pty) Ltd. [很确定该公司拥有/是 godaddy 的合作伙伴]
组织单位:

信任该服务器并建立连接?
[按钮 1.]会话信任。 [按钮 2.]取消


奇怪的是,当这个弹出窗口出现时,广告已经加载了。如果我按取消,应用程序不会中断(并且广告是可点击的!),但如果应用程序尝试通过重新加载 ad.html 页面来获取新广告,则会出现相同的弹出窗口。同样,弹出窗口似乎是在新广告加载后出现的!
如果我尝试加载其他一些页面(例如 http://www.questionablecontent.net),则会发生这种情况,但如果我加载 http://www.stackoverflow.com 或 https 页面(例如 google)。
我无法判断是 AIR 创建弹出窗口还是 Android,但我很确定它是 Android。

我的 Android 清单只有两个权限:INTERNET 和 ACCESS_NETWORK_STATE。
我在 verizon 上有一台 HTC Incredible 2。

我愿意接受任何修复,只要让这个弹出窗口消失!

I am trying to put ads in an AIR for Android app. I am hosting the add in an html on my website (which is hosted by godaddy, but I have total control), then loading that html in a StageWebView object (the AIR equivalent of an iframe, kind of) which is in the app.
This works!
The ad displays beautifully on the phone, but I get this popup each time the app is run:
"
The server that the application is connecting to is unverified.
Server: http://www.mywebsite.com/ad.html
Certificate:
Issue To:
Common Name: www.google.com
Organizational unit:
Issued By: Thawte Consulting (Pty) Ltd. [Pretty sure this company owns/is a partner of godaddy]
Organizational unit:

Trust this server and make the connection?
[button 1.]Trust for Session. [button 2.]Cancel
"

Strangely, the ad is already loaded when this popup appears. If I press cancel, the app does not break (and the ad is clickable!), but the same popup will appear if the app tries to grab a new ad by reloading the ad.html page. Again, the popup appears seemingly AFTER the new ad has loaded!
This happens if I try to load some other pages, like http://www.questionablecontent.net, but not if I load http://www.stackoverflow.com or a https page like google.
I cannot tell if it is AIR creating the popup or android, but I'm pretty sure it's Android.

My android manifest has only two permissions, INTERNET and ACCESS_NETWORK_STATE.
I have an HTC Incredible 2 on verizon.

I'm open to ANY fix that jsut gets this popup gone!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

┼── 2025-01-10 12:04:45

您的 CA 证书有问题。验证您的域的 CA 可能尚未安装,或者至少对 Adob​​e AIR 不可见。我不知道它是否适用于 Android,但以下是如何在 AIR for OpenSuSE 上安装证书的说明:http://rachaelandtom.info/content/remove-unverified-server-pop-air

You are having an issue with a CA certificate. Probably the CA that verifies your domain is not installed, or at least not visible to Adobe AIR. I don't know if it will work on Android, but here is a description of how to install the certificate on AIR for OpenSuSE: http://rachaelandtom.info/content/remove-unverified-server-pop-air

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文