none
12157 ERROR_INTERNET_SECURITY_CHANNEL_ERROR on HttpSendRequestW

    Question

  • I am trying to authenicate to a web service from a WM5 application using a client certificate.  I originally tried to use the clientcertificates property of the NETCF 3.5 HttpWebRequest class. However, after working with MSFT support we decided that there was bug in the HttpWebRequest class.  The support rep recommend I use unmanaged code, so I wrote a class that uses the wininet.dll functions.  I was able to get it to work over HTTP and HTTPS; however, when I attach a client certificate to the request  using the InternetSetOption function the HttpSendRequestW function errors with the following error: 12157 ERROR_INTERNET_SECURITY_CHANNEL_ERROR. 
     
    Does anyone any thoughts on how I may get around this error?

    Thanks
     
    Tuesday, January 06, 2009 10:25 PM