none
How to read the certificate infomration sent by server on windows mobile pocketpc device ? RRS feed

  • Question

  •  

    Hi All,

    I am trying to send an https:// request from my .Net CF2.0 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 the device, than how can I do this ?
    How can I read the certificate infomration sent by server on windows mobile pocketpc device ?


    Thanks in advance.

    Monday, February 2, 2009 11:09 AM

Answers