Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Request.ClientCerficate

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
bad request - hello ng this request causes a "bad ond IIS6 - but works fine on IIS5 - what's wrong with this request? no ? no lowercase no (http1.0) - no idea?! ;-) request: 0x0000 00 01 03 BF C8 F2 00..

400 bad request - HI, I am trying asp.net for the very first time. When i try to work on an example in a book, it says to create a project for (asp.net web Location: I get error 400 bad request. IIS server is

400 bad request - My admin setup a website 'EDV' on a new server and it pointed to the default website. Worked just fine. We decided to create a new website and change the name 'EDV' to point to the new website. The new website has its own IP address. Default website

HTTP 400 - Bad Request - A while back I posted with regard to the above error message; following the advice I have turned off show friendly errors the displayed message is now Host Header Required Your Broswer did not send a HTTP header field and

HTTP 400 - Bad Request - Hello folks, I may not be in the right place so apologies if not I have a small IIS 6.0 site on my Windows 2000 server that is used to require user of school rules prior to accessing the Internet. This works fine and 95% of web browsing is..
Next:  IIS: Time out when loading a VB.NET 1.1 Web Project  
Author Message
Meels Lilbok

External


Since: Feb 26, 2008
Posts: 3



(Msg. 1) Posted: Tue Feb 26, 2008 3:05 pm
Post subject: Request.ClientCerficate
Archived from groups: microsoft>public>inetserver>asp>general, others (more info?)

Hi

I have a problem with Request.ClientCerficate
IIS 6. ASP solution,Win2003R2

Whe i call Request.ClientCerficate it does to nothing.
All settings , certifcates aso. are OK. because on another server same
solution works perfectly!
No errors, nothing., it just does not work.

Any ideas?


Best regards;
Meelis

 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Andy

External


Since: Feb 26, 2008
Posts: 7



(Msg. 2) Posted: Tue Feb 26, 2008 3:05 pm
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

How and where are you requesting the client certificate? Is this
through program code (ie VB.NET), a properties sheet (from what
application), or because of a call to a website from inside of
internet explorer?

Client certificates identify client computers to server computers
under the Kerberos scheme. Does your server need to have kerberos
setup?

Its hard to tell what's wrong without really knowing what you are
trying to do...because there are so many things you can do with
certificates.

Andy

 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Meelis Lilbok

External


Since: Jan 30, 2007
Posts: 4



(Msg. 3) Posted: Tue Feb 26, 2008 3:05 pm
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Andy

Im requesting client certificate trough ASP(old asp) code.
ASP page runs under IIS 6.Server certificate is ok, and webpage is set to
accept client certificates.
Testing with Internet Explorer 6 and 7. Client certificate is read from
Estonian National ID Card.


testing with code;
<%
For Each strKey in Request.ClientCertificate
Response.Write strkey & " = " & Request.ClientCertificate(strkey) & "<BR>"
Next
%>

On another server all works fine, when i call this asp page, "select a
digital certificate" window pops up even when no id-card is inserted.
On this problematic server it does not work.




Meelis


"Andy" <anedza RemoveThis @infotek-consulting.com> kirjutas sõnumis news:
3c2f5d4e-afc5-480a-8c63-4cc06cca5469 RemoveThis @72g2000hsu.googlegroups.com...
> How and where are you requesting the client certificate? Is this
> through program code (ie VB.NET), a properties sheet (from what
> application), or because of a call to a website from inside of
> internet explorer?
>
> Client certificates identify client computers to server computers
> under the Kerberos scheme. Does your server need to have kerberos
> setup?
>
> Its hard to tell what's wrong without really knowing what you are
> trying to do...because there are so many things you can do with
> certificates.
>
> Andy
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Andy

External


Since: Feb 26, 2008
Posts: 7



(Msg. 4) Posted: Tue Feb 26, 2008 3:05 pm
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In your code, you aren't checking to see if any certificates were
received at all (by checking for a count before you go into the for
each loop). If the count is zero, you should display an error message
stating no certificates were received.

<%
For Each strKey in Request.ClientCertificate
Response.Write strkey & " = " & Request.ClientCertificate(strkey) &
"<BR>"
Next
%>

Because you don't crash, your results indicate that no certificates
have been sent by the client when it issued a request to your server.
Check your client browser security settings to ensure that the browser
isn't stopping this information from being sent.

Also, should the in clause of your for each be
Request.ClientCertificates, which is the actual collection of the
certificates sent?

Andy
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Meels Lilbok

External


Since: Feb 26, 2008
Posts: 3



(Msg. 5) Posted: Wed Feb 27, 2008 9:02 am
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Andy

Yes, i'm not checking Count beacuse i wanted to get error message.
But there is no error, Count is always 0.

As i sayd, its not browser related problem, because on another server all
works fine when i call this asp page from IE.

Meelis



"Andy" <anedza.TakeThisOut@infotek-consulting.com> kirjutas sõnumis news:
3c631a9f-477e-4acf-b8c3-4459fc146c0b.TakeThisOut@o10g2000hsf.googlegroups.com...
> In your code, you aren't checking to see if any certificates were
> received at all (by checking for a count before you go into the for
> each loop). If the count is zero, you should display an error message
> stating no certificates were received.
>
> <%
> For Each strKey in Request.ClientCertificate
> Response.Write strkey & " = " & Request.ClientCertificate(strkey) &
> "<BR>"
> Next
> %>
>
> Because you don't crash, your results indicate that no certificates
> have been sent by the client when it issued a request to your server.
> Check your client browser security settings to ensure that the browser
> isn't stopping this information from being sent.
>
> Also, should the in clause of your for each be
> Request.ClientCertificates, which is the actual collection of the
> certificates sent?
>
> Andy
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Meels Lilbok

External


Since: Feb 26, 2008
Posts: 3



(Msg. 6) Posted: Wed Feb 27, 2008 9:04 am
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

found similar problem in archives

http://www.webservertalk.com/archive122-2005-5-1044901.html


Meelis





"Meels Lilbok" <meelis.lilbok DeleteThis @deltmar.ee> kirjutas sõnumis news:
u#rqTYIeIHA.4712@TK2MSFTNGP04.phx.gbl...
> Hi
>
> I have a problem with Request.ClientCerficate
> IIS 6. ASP solution,Win2003R2
>
> Whe i call Request.ClientCerficate it does to nothing.
> All settings , certifcates aso. are OK. because on another server same
> solution works perfectly!
> No errors, nothing., it just does not work.
>
> Any ideas?
>
>
> Best regards;
> Meelis
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
David Wang

External


Since: Nov 14, 2007
Posts: 357



(Msg. 7) Posted: Sat Mar 01, 2008 2:59 am
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

This sounds like user misconfiguration of the server because as you
say, the same code works on another server, and it works from
different clients.

Verify you actually have identifical configuration between the working
and non-working server. If you automate and script the deployment of
your servers that would not be an issue, but if you hand-configure
servers, they will likely fall out of sync no matter what you do.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



On Feb 26, 11:52 pm, "Meels Lilbok" <meelis.lil... RemoveThis @deltmar.ee> wrote:
> found similar problem in archives
>
> http://www.webservertalk.com/archive122-2005-5-1044901.html
>
> Meelis
>
> "Meels Lilbok" <meelis.lil... RemoveThis @deltmar.ee> kirjutas sõnumis news:
> u#rqTYIeIHA.4...@TK2MSFTNGP04.phx.gbl...
>
>
>
> > Hi
>
> > I have a problem with  Request.ClientCerficate
> > IIS 6. ASP solution,Win2003R2
>
> > Whe i call Request.ClientCerficate it does to nothing.
> > All settings , certifcates aso. are OK. because on another server same
> > solution works perfectly!
> > No errors, nothing., it just does not work.
>
> > Any ideas?
>
> > Best regards;
> > Meelis- Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Freddy Rios

External


Since: Mar 05, 2008
Posts: 1



(Msg. 8) Posted: Wed Mar 05, 2008 8:11 am
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

I am also facing the same issue on my vista development computer.

I think it is an undocumented behavior around iis+asp.net2.0+certificates.
This is the analysis so far:
- My computer is running vista, iis and vs 2008.
- I am using asp.net 2.0 web services and iis. I had to activate iis6
compatibility in order to run this web service on iis.
- After activating IIS certificates and running a test with an untrusted
client certificate (sample certificate issued with the test root),
iis+asp.net issued an error about the client certificate being invalid.
- After switching the test to use a valid+trusted client certificate, the
request to the web method gets processed normally.

Previous behavior reveals the client certificate gets validated by
iis+asp.net. This isn't consistent with "Request.ClientCertificate.IsPresent"
being false (no client certificate). I even can get to the subject and issuer
through Request.ServerVariables.

I am still looking at the issue, but so far my only guess it only gets
populated when you get iis to map it to a windows account. I haven't verified
it since that is the configuration we (me and my client) wanted to avoid in
the first place. Since I want it to do some authorization, once the mapping
is done there is no longer a point to get the client certificate.

Is there any special additional configuration on this?
"David Wang" wrote:

> This sounds like user misconfiguration of the server because as you
> say, the same code works on another server, and it works from
> different clients.
>
> Verify you actually have identifical configuration between the working
> and non-working server. If you automate and script the deployment of
> your servers that would not be an issue, but if you hand-configure
> servers, they will likely fall out of sync no matter what you do.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
>
> On Feb 26, 11:52 pm, "Meels Lilbok" <meelis.lil... DeleteThis @deltmar.ee> wrote:
> > found similar problem in archives
> >
> > http://www.webservertalk.com/archive122-2005-5-1044901.html
> >
> > Meelis
> >
> > "Meels Lilbok" <meelis.lil... DeleteThis @deltmar.ee> kirjutas sƵnumis news:
> > u#rqTYIeIHA.4...@TK2MSFTNGP04.phx.gbl...
> >
> >
> >
> > > Hi
> >
> > > I have a problem with Request.ClientCerficate
> > > IIS 6. ASP solution,Win2003R2
> >
> > > Whe i call Request.ClientCerficate it does to nothing.
> > > All settings , certifcates aso. are OK. because on another server same
> > > solution works perfectly!
> > > No errors, nothing., it just does not work.
> >
> > > Any ideas?
> >
> > > Best regards;
> > > Meelis- Hide quoted text -
> >
> > - Show quoted text -
>
>
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
reb015011

External


Since: Mar 04, 2004
Posts: 28



(Msg. 9) Posted: Wed Mar 05, 2008 11:28 am
Post subject: Re: Request.ClientCerficate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Freddy Rios wrote:
> Hi,
>
> I am also facing the same issue on my vista development computer.
>
> I think it is an undocumented behavior around
> iis+asp.net2.0+certificates.
You should remove .inetserver.asp.general from your crosspost and add
..dotnet.framework.aspnet
This is a classic ASP group and you want the ASP.Net group.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
 >> Stay informed about: Request.ClientCerficate 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]