ssl(基于证书的身份验证)在 wp7 中完成工作和理解
我试图理解 wp7 中 ssl 的概念。
我了解到公钥已安装在手机中。 私钥如何与公钥同步? 有需要什么代码吗?
在我的场景中,我有一个用户名和密码。 对于客户端身份验证,我想要这种 ssl 通信。
如何针对这种场景实现这个 ssl 概念? 而且我也不想打扰用户体验。
I am trying to understand the concept of ssl in wp7.
I learnt that public key is installed in the phone.
And how the private key will synchronize with the public key?
Is there any code needed?
In my scenario is that i have a username and password.
and for client authentication i want this ssl communication.
How to implement this ssl concept for this scenario?
And i dont want to disturb user experience too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短回答:您无法将受信任的证书添加到电话,也无法使用不受信任的证书与服务器建立 HTTPS 连接。
长答案
您可以通过 通过电子邮件发送给自己并在手机上打开附件。但是,每次启动时您都必须在模拟器上执行此操作,并且您不能要求应用程序的用户执行此操作(您很可能会被市场拒绝)。
Short anwer: you cannot add trusted certificates to the phone and you cannot make HTTPS connections to servers with untrusted certificates.
Long answer
You can install a custom certificate on the phone by emailing it to yourself and opening the attachment on the phone. However, you'll have to do it on the emulator everytime it starts and you can't ask users of your application to do it (you'll very likely be rejected from the marketplace).
使用以下沼泽:
Use the following bog: