简体   繁体   English

主机证书中的Tizen 3.0 Web密钥与固定密钥不匹配

[英]Tizen 3.0 Web Key in the Certificate of the Host is Mismatched to the Pinned Key

I am developing a Tizen web app that can download files from certain URL with https:// protocol. 我正在开发Tizen网络应用程序,该应用程序可以使用https://协议从某些URL下载文件。 The downloader I use is the default tizen.download API provided by Tizen. 我使用的下载器是Tizen提供的默认tizen.download API。 When it turned to the validation phase of Tizen Store, my app got rejected because the download feature does not work in Samsung's Z4 device. 当它进入Tizen Store的验证阶段时,我的应用被拒绝了,因为下载功能在Samsung的Z4设备中不起作用。

The test video report from the store shows that my app's download process worked flawlessly in former Z devices (Z1, Z2, & Z3), but got stuck in Z4 without any error message nor alert. 商店的测试视频报告显示,我的应用程序的下载过程在以前的Z设备(Z1,Z2和Z3)上均能完美运行,但卡在Z4中却没有任何错误消息或警报。 Lately I noticed that Z4 devices are powered by Tizen OS version 3.0 while the other devices use Tizen v2.4 and older. 最近,我注意到Z4设备由Tizen OS 3.0版提供支持,而其他设备则使用Tizen v2.4和更早的版本。

So I began investigating the problem by deploying my app to a Tizen v3.0 emulator. 因此,我开始通过将应用程序部署到Tizen v3.0模拟器来调查问题。 When I tried to launch the download feature, an alert popped up displaying a message: "Web Key in the Certificate of the Host [https://site-address.com] is Mismatched to the Pinned Key" . 当我尝试启动下载功能时,弹出一个警报,显示一条消息: "Web Key in the Certificate of the Host [https://site-address.com] is Mismatched to the Pinned Key" I searched "Pinned Key" int the Tizen Developer site and figured out that it actually is a kind of new security feature newly implemented in Tizen 3.0, here is the screenshot: 我在Tizen开发人员站点中搜索了“固定密钥”,发现它实际上是Tizen 3.0中新实现的一种新的安全功能,以下是屏幕截图:

在此处输入图片说明

When I click "allow" button, it gives no effect the and the alert keeps appearing. 当我单击“允许”按钮时,它没有任何作用,并且警报不断出现。 The download process is still fails. 下载过程仍然失败。 So, my question how can we (if possible) fix such problem? 那么,我的问题是我们如何(如果可能)解决此类问题?

*Note: I found that this problem will not occur if the URL protocol is "http://" *注意:我发现,如果URL协议为"http://"则不会发生此问题

I Tried this sample app on Tizen Studio: 我在Tizen Studio上试用了此示例应用程序:

New > Sample > Mobile 3.0 > Web > Content > DownloadManager 新建>示例>移动3.0> Web>内容> DownloadManager

Deployed the app on Tizen 3.0 Mobile Emulator and downloaded packages One example package: 在Tizen 3.0 Mobile Emulator上部署了该应用程序并下载了程序包一个示例程序包:

download.tizen.org/sdk/samples/online/Web/MW_download-manager/MW_download-manager.zip download.tizen.org/sdk/samples/online/Web/MW_download-manager/MW_download-manager.zip

Works fine, I would suggest you to check out the source code of the app, May help. 工作正常,我建议您检查该应用程序的源代码,可能会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM