overriding certificate verification in windows8

社会主义新天地 提交于 2019-12-23 12:29:06

问题


I am trying to use a self-signed certificate in a ssl socket on windows8 consumer preview. I am getting this exception:

Exception : System.Runtime.InteropServices.COMException (0x800B0109): A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (Exception from HRESULT: 0x800B0109 .

Is it possible to override the validation of ssl certificate ? Something like remotecertificatevalidationcallback , which does not seem to be accessible on windows8.

Thanks a lot in advance.


回答1:


In Silverlight (which has a very similar security model), there is no way to go around a SSL error in a connection. The only workaround in my case was a server side proxy hiding the SSL errors.

I doubt that you'll find a way to do insecure connections in Win8's sandbox (same as in Silverlight).



来源:https://stackoverflow.com/questions/9986039/overriding-certificate-verification-in-windows8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!