Re: Problem with client certificates after upgrade
From: Michel Gallant (neutron_at_NOSPAMistar.ca)
Date: 01/15/04
- Next message: Moises E. J.: "RE: Auth Manager and AccessCheck for Tasks"
- Previous message: Krish Shenoy[MSFT]: "Re: How to create a cert for signing ActiveX using my own CA ???"
- In reply to: Sascha: "Problem with client certificates after upgrade"
- Next in thread: Sascha: "Re: Problem with client certificates after upgrade"
- Reply: Sascha: "Re: Problem with client certificates after upgrade"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 15 Jan 2004 14:18:23 -0500
There is some issue with the actual format of Certificate returned
via ASP. Not sure if this is the problem .. maybe format has changed
in W2K3?
http://groups.google.com/groups?th=61c3f67247cb076c
- Mitch Gallant
MVP Security
"Sascha" <sascha@nospam> wrote in message news:Ok05Rc32DHA.1764@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I've upgraded my web server (W2K, IIS5) to W2K3, IIS6.0 with the web
> application (ASP, not ASP:NET) that uses client certificates.
> Now the site doesn't work :-(
>
> Basically, when the user provides the client certificate, the asp page takes
> the public key and checks in the database for that public key. If it finds
> the key, it then maps the user to the firm's id.
>
> The code that takes the client cert looks like this:
> <%
> function iif(bool, valTrue, valFalse)
> if bool then
> iif=valTrue
> else
> iif=valFalse
> end if
> end function
>
> function leadZero(num)
> leadZero = iif(len(cstr(num))<2,"0" & cstr(num), cstr(num))
> end function
>
> pk = Request.ClientCertificate("PublicKey")
>
> for i=1 to len(pk)
> pk2 = pk2 & leadZero(hex(asc(mid(pk,i,1))))
> next
> %>
>
> On the W2k, you would have the public key in pk2 variable which is correct
> when cheched in the database.
> On the W2k3, you get something completely different in the pk2 variable, and
> of course that value doesn't get passed the database check.
>
> In short, the Request.ClientCertificate("PublicKey") provides two different
> values for w2k and w2k3.
>
> What's up with that?
> Can someone help? Microsoft?
> I've searched everything for this....
>
> --
> Sascha
>
>
> --
> Sasa Bart
> Senior Consultant
> M SAN Grupa d.o.o.
>
>
- Next message: Moises E. J.: "RE: Auth Manager and AccessCheck for Tasks"
- Previous message: Krish Shenoy[MSFT]: "Re: How to create a cert for signing ActiveX using my own CA ???"
- In reply to: Sascha: "Problem with client certificates after upgrade"
- Next in thread: Sascha: "Re: Problem with client certificates after upgrade"
- Reply: Sascha: "Re: Problem with client certificates after upgrade"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|