4
votes

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
Add yourself to the trusted CA list. windows.microsoft.com/en-US/windows-vista/…Ritch Melton
I do not want to add manually. I would like to programmatically override it because the client and the server trust each other and just want to encrypt the data with server's public key.pkumar0

1 Answers

0
votes

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).