Hi All,
I am trying to send an https:// request from my .Net CF application. The code is as follows :
try
{
HttpWebRequest request = ( HttpWebRequest )
WebRequest.Create(
https://www.anyServer.com );
request.Method = "GET";
HttpWebResponse webResponse =
( HttpWebResponse )request.GetResponse();
}
catch( WebException e1 )
{
MessageBox.Show( e1.Message );
}
After sending the request im getting an exception that says "trust failure". I know that it is because of the root certificate is not installed on the device root certificate store.
But if I want to validate server sertificate on device, than how can I do this ?
How can I read the certificate infomration sent by server on windows mobile pocketpc device ?
Can you suggess me where im missing something or where i have to do something else ?
Thanks in advance.