如何忽略Windows Phone 7中的证书错误?

编程入门 行业动态 更新时间:2024-10-21 16:26:05
本文介绍了如何忽略Windows Phone 7中的证书错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在互联网上搜索,我知道在.Net中,我们可以使用以下代码来忽略验证错误。

I have searched the internet and I know that in .Net we can use the following codes to ignore certification errors.

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback( delegate { return true; } );

但是Windows Phone 7开发不支持认证类(知道从 social.msdn.microsoft/Forums / en-US / windowsphone7series / thread / 4f795a8e-de05-4f01-be7f-0cf2be3a71c2 )。我现在使用 WebClient 访问需要首先进行认证的 HTTPS 网站。

But the certification classes are not supported in windows phone 7 development (know from social.msdn.microsoft/Forums/en-US/windowsphone7series/thread/4f795a8e-de05-4f01-be7f-0cf2be3a71c2). I am now using a WebClient to visit a HTTPS website which requires a certification first. So I am wondering is it possible to ignore the certification errors so that I can continue with my program?

推荐答案

不,不幸的是,安全人员不会让你。

No, unfortunately, the security guys won't let you.

更多推荐

如何忽略Windows Phone 7中的证书错误?

本文发布于:2023-11-07 22:53:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567661.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:证书   错误   Windows   Phone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!