gpt4 book ai didi

windows-phone-8 - Windows Phone 8 和 HTTPS/SSL

转载 作者:太空宇宙 更新时间:2023-11-03 12:40:40 27 4
gpt4 key购买 nike

我需要在我的 Windows Phone 8.0 应用程序中通过 HTTPS 连接到 Web 服务。 Microsoft 似乎没有客户端 SSL 支持关于这个问题。

我真的需要知道如何在 WP8 中处理证书。什么是正确的证书?需要导入哪些证书?

场景:我有一个 https 端点:https://10.1.1.2,当我从我的 PC 连接到那里时,系统提示我查看并安装服务器证书。证书名称“The Root CA”正在本地保存。移动设备中安装了相同的证书,没有问题。当我从 mobile internet explorer 打开 https://10.1.1.2 时,它通知我该网页是安全的,我必须在关闭和继续该页面之间做出选择.我单击继续,https://10.1.1.2 交易发生。每次我通过移动互联网浏览器访问同一个 URL 时,都没有向最终用户发出有关安全的警告。

According to Microsoft: In most cases, you do not have to do anything to enable this for your Windows Phone app with the exception of using an address that begins with the https:// protocol scheme. Windows Phone then examines the certificate that is returned by the web service, and if the certificate is from one of the trusted authorities listed in SSL root certificates for Windows Phone OS 7.1, the Windows Phone app platform then uses the certificate in conjunction with the web service to encrypt all further communication, including the exchange of the authentication credentials as described previously. Although you can install trusted certificates on the Windows Phone, in the current release, the Windows Phone app platform does not expose those certificates’ values to apps. As a result, in the current release, you cannot implement mutual authentication scenarios – scenarios in which the client sends its own certificates to the web service in addition to receiving one -- using certificates installed in the root store.

那么,这个程序可以吗?我无法使用 Microsoft 提供的证书颁发机构之一默认情况下信任。我需要代码吗?

最佳答案

不能使用自签名证书,它不会在没有干预的情况下自动获取数据。

关于windows-phone-8 - Windows Phone 8 和 HTTPS/SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24240070/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com