Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2007 Jul : InternetSetOption with INTERNET_OPTION_CLIENT_CERT_CONTEXT fails with error code
| Subject: | InternetSetOption with INTERNET_OPTION_CLIENT_CERT_CONTEXT fails with error code |
| Posted by: | "Vadym Stetsiak" (vadmy..@gmail.com) |
| Date: | Mon, 2 Jul 2007 16:25:50 |
Hello, All!
My goal is to specify client certificate in HTTP request without calling
certificate select dialog via InternetErrorDialog.
I'm using InternetSetOption API with INTERNET_OPTION_CLIENT_CERT_CONTEXT.
GetLastError returns 2.
Certificate context is obtained correctly and specified in InternetSetOption
if ( InternetSetOption(hReq, INTERNET_OPTION_CLIENT_CERT_CONTEXT, (void *)
m_pContext, sizeof(CERT_CONTEXT)))
{
GetLastError();
}
I'm using WinInet under Windows Mobile 6.