|
|
|
date: 20 Jan 2006 03:43:28 -0800,
group: microsoft.public.platformsdk.internet.server.isapi-dev
back
Re: Unable to access the client SSL certificate
What about:
GetServerVariable( "CERT_SUBJECT" )
I have no idea what you mean by "if this will work in all cases" because by
definition, server variables cannot work in all cases, especially before
they become valid throughout the request execution process.
For example, AUTH_USER cannot possibly be populated correctly prior to
completing authentication, but nothing stops you from calling
GetServerVariable( AUTH_USER ) in SF_NOTIFY_PREPROC_HEADERS. You decide
whether the value retrieved is valid or not...
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Suyog" wrote in message
news:1137761192.651508.250020@z14g2000cwz.googlegroups.com...
>A little more clarification:
>
>
>
> I am interested only in the "Subject" of the certificate.
>
>
>
> Is this a good way to do the same?
>
>
>
> [Function signature:
>
> DWORD CAuthFilter::OnAuthComplete(CHttpFilterContext* pfc,
> PHTTP_FILTER_AUTH_COMPLETE_INFO pAuthComplInfo)
>
> ]
>
>
>
>
>
> LPSTR szVariableName = "CERT_SUBJECT";
>
> DWORD dwSubjectBufSize = sizeof (SubjectBuf);
>
>
>
> pfc->GetServerVariable(szVariableName, SubjectBuf,
> &dwSubjectBufSize);
>
>
>
> I am using the "GetServerVariable" but I am not sure if this will
> work in all cases so wanted to confirm.
>
>
>
> Thanks,
>
> Suyog
>
date: Sat, 21 Jan 2006 01:16:56 -0800
author: David Wang [Msft]
|
|