Unable to set up client certificate, error 403.7
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Unable to set up client certificate, error 403.7




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Unable to set up client certificate, error 403.7  
David Carr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-03-05 01:51 AM

Hi,

I am trying to set up a simple test case, following verbatim MS's tutorial
"How To Set Up Client Certificates".
http://msdn.microsoft.com/library/d...
d31.asp
Unfortunately I am not having success.

My configuration is as follows; IIS is run on my Windows 2000 Professional
(NOT server) developer machine, and the client is viewing the simple
WebForm1.aspx which extracts the username and tests whether the request had
a client certificate.  The client is a Win2K box running IE6.  Neither of
these machines are in a domain.

private void Page_Load(object sender, System.EventArgs e)
{
string username;
username = User.Identity.Name;
if (username.Length <= 0)
username = "User.Identity.Name is blank";
lblMessage.Text = "Welcome " + username;
HttpClientCertificate cert = Request.ClientCertificate;
if (cert.IsPresent)
certData.Text = "Client certificate retrieved";
else
certData.Text = "No client certificate yet";
}

The Client Certificate was requested from a Windows 2000 Server (different
box than my box where IIS and the code above is run).  This server is
running Certificate Services as a Stand Alone CA.

When IIS is configured to simply "Accept client certificates", the
User.Identity.Name is blank and there is no client certificate.  When IIS is
changed to "Require client certificates", I receive an error HTTP 403.7
stateing that "the page requires a client certificate".

This problem seems identical to that discussed ("Client certificate
problem") and unresolved by Felix Planjer/Miha Pihler/brik on 2004.Dec.14 in
this newsgroup.
http://groups.google.ca/groups?selm...FTNGP15.phx.gbl
Unfortunately their thread was never terminated with a resolution.

Any help would be much appreciated.  Best regards,
David








[ Post a follow-up to this message ]



    Re: Unable to set up client certificate, error 403.7  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-03-05 07:49 AM

: When IIS is configured to simply "Accept client certificates", the
: User.Identity.Name is blank and there is no client certificate.

Because it is optional for the client to send a certificate, and it (the
client) doesn't appear to be sending one.

: When IIS is
: changed to "Require client certificates", I receive an error HTTP 403.7
: stateing that "the page requires a client certificate".

Because the client isn't sending a certificate

I think you need to look at the client here...

Cheers
Ken

--
Blog: www.adopenstatic.com/cs/blogs/ken/
Web: www.adopenstatic.com



"David Carr" <David_Carr@NoSpamCanada.Com> wrote in message
news:OcxvzE3TFHA.752@TK2MSFTNGP10.phx.gbl...
: Hi,
:
: I am trying to set up a simple test case, following verbatim MS's tutorial
: "How To Set Up Client Certificates".
:
http://msdn.microsoft.com/library/d...
d31.asp
: Unfortunately I am not having success.
:
: My configuration is as follows; IIS is run on my Windows 2000 Professional
: (NOT server) developer machine, and the client is viewing the simple
: WebForm1.aspx which extracts the username and tests whether the request
had
: a client certificate.  The client is a Win2K box running IE6.  Neither of
: these machines are in a domain.
:
: private void Page_Load(object sender, System.EventArgs e)
: {
:    string username;
:    username = User.Identity.Name;
:    if (username.Length <= 0)
:        username = "User.Identity.Name is blank";
:    lblMessage.Text = "Welcome " + username;
:    HttpClientCertificate cert = Request.ClientCertificate;
:    if (cert.IsPresent)
:        certData.Text = "Client certificate retrieved";
:    else
:        certData.Text = "No client certificate yet";
: }
:
: The Client Certificate was requested from a Windows 2000 Server (different
: box than my box where IIS and the code above is run).  This server is
: running Certificate Services as a Stand Alone CA.
:
: When IIS is configured to simply "Accept client certificates", the
: User.Identity.Name is blank and there is no client certificate.  When IIS
is
: changed to "Require client certificates", I receive an error HTTP 403.7
: stateing that "the page requires a client certificate".
:
: This problem seems identical to that discussed ("Client certificate
: problem") and unresolved by Felix Planjer/Miha Pihler/brik on 2004.Dec.14
in
: this newsgroup.
:
http://groups.google.ca/groups?selm...FTNGP15.phx.gbl
: Unfortunately their thread was never terminated with a resolution.
:
: Any help would be much appreciated.  Best regards,
: David
:
:
:







[ Post a follow-up to this message ]



    Re: Unable to set up client certificate, error 403.7  
David Carr


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-03-05 10:55 PM

Thanks for the reply Ken.  Yes, from my posting and the 403.7 error message
one would conclude that the client is not sending a certificate.  Further to
this, when I hit this site
https://idun.certifikat.tdc.dk/update/jsp/test.jsp
a "Client Authentication" window pops up with nothing in it.  This is
despite the fact that I have installed the client certificate and it is
visible through running mmc and adding the "Certificates" snap-in (listed
under Personal\Certificates).  The root CA certificate generated on the
Win2K server is also visible under "Intermediate Certification
Authorities\Certificates".  Note that when I hit my C# ASP.NET page, no
"Client Authentication" dialog appears.

Does anyone have any ideas as to why the IE client wouldn't be sending a
certificate?  What C# mechanism to prompt for a certificate is equivalent to
what is used on the link above using JSP?

Any idea if there is a problem with this setup:
1. Client - Win2K Pro machine using IE6
2. Server - Win2K Pro machine running IIS and serving WebForm1.aspx.
3. CA - Stand alone Certificate Authority resides on another machine, namely
a Win2K server.
Specifically, if the CA has to be on the same machine as IIS?

After another day at this, it is still unresolved.  Any help appreciated.

Cheers,
David


"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:O9BPrT5TFHA.1896@TK2MSFTNGP14.phx.gbl...
> : When IIS is configured to simply "Accept client certificates", the
> : User.Identity.Name is blank and there is no client certificate.
>
> Because it is optional for the client to send a certificate, and it (the
> client) doesn't appear to be sending one.
>
> : When IIS is
> : changed to "Require client certificates", I receive an error HTTP 403.7
> : stateing that "the page requires a client certificate".
>
> Because the client isn't sending a certificate
>
> I think you need to look at the client here...
>
> Cheers
> Ken
>
> --
> Blog: www.adopenstatic.com/cs/blogs/ken/
> Web: www.adopenstatic.com
>
>
>
> "David Carr" <David_Carr@NoSpamCanada.Com> wrote in message
> news:OcxvzE3TFHA.752@TK2MSFTNGP10.phx.gbl...
> : Hi,
> :
> : I am trying to set up a simple test case, following verbatim MS's
tutorial
> : "How To Set Up Client Certificates".
> :
>
http://msdn.microsoft.com/library/d...ml/secmod31.asp[vb
col=seagreen]
> : Unfortunately I am not having success.
> :
> : My configuration is as follows; IIS is run on my Windows 2000[/vbcol]
Professional
> : (NOT server) developer machine, and the client is viewing the simple
> : WebForm1.aspx which extracts the username and tests whether the request
> had
> : a client certificate.  The client is a Win2K box running IE6.  Neither
of
> : these machines are in a domain.
> :
> : private void Page_Load(object sender, System.EventArgs e)
> : {
> :    string username;
> :    username = User.Identity.Name;
> :    if (username.Length <= 0)
> :        username = "User.Identity.Name is blank";
> :    lblMessage.Text = "Welcome " + username;
> :    HttpClientCertificate cert = Request.ClientCertificate;
> :    if (cert.IsPresent)
> :        certData.Text = "Client certificate retrieved";
> :    else
> :        certData.Text = "No client certificate yet";
> : }
> :
> : The Client Certificate was requested from a Windows 2000 Server
(different
> : box than my box where IIS and the code above is run).  This server is
> : running Certificate Services as a Stand Alone CA.
> :
> : When IIS is configured to simply "Accept client certificates", the
> : User.Identity.Name is blank and there is no client certificate.  When
IIS
> is
> : changed to "Require client certificates", I receive an error HTTP 403.7
> : stateing that "the page requires a client certificate".
> :
> : This problem seems identical to that discussed ("Client certificate
> : problem") and unresolved by Felix Planjer/Miha Pihler/brik on
2004.Dec.14
> in
> : this newsgroup.
> :
>
http://groups.google.ca/groups?selm...FTNGP15.phx.gbl
> : Unfortunately their thread was never terminated with a resolution.
> :
> : Any help would be much appreciated.  Best regards,
> : David
> :
> :
> :
>
>







[ Post a follow-up to this message ]



    Re: Unable to set up client certificate, error 403.7  
jwmason1@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-05-05 11:03 PM

Had similar issues.  What works here:

Export the trusted root cert for the SERVER from the Cetificates -
Local User (mmc snap-in) cert store, import into the local computer
certificates (mmc snap-in)






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:14 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register