Home All Groups Group Topic Archive Search About

Client Certificate Selection

Author
12 Feb 2007 10:00 PM
CynicalIrony@gmail.com
I have what I hope to be a simple question. I'm currently working on a
project that uses IIS to request a Client Cert (X509) from a CAC/
Smartcard. However, we want to get away from IIS mandating this
requirement and have ASP.NET (C#) request this cert from the client.
Is there anyway in .NET to force the Client Cert request dialog as IIS
would do it? Or even automatically select a client cert from the
supplied certs? (The CAC/Smartcards house 2 or more certs.)

TIA

Author
12 Feb 2007 10:33 PM
Joe Kaplan
I don't think so as the SSL negotiation is all done by IIS long before the
ASP.NET code ever executes.

What would it get you by having ASP.NET do this instead of IIS?

I suppose you could implement your own web server using SslStream as a
starting point to get total control over what is going on, but that sounds
like an awful lot of work to do.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<CynicalIr***@gmail.com> wrote in message
Show quoteHide quote
news:1171317600.999709.40050@p10g2000cwp.googlegroups.com...
>I have what I hope to be a simple question. I'm currently working on a
> project that uses IIS to request a Client Cert (X509) from a CAC/
> Smartcard. However, we want to get away from IIS mandating this
> requirement and have ASP.NET (C#) request this cert from the client.
> Is there anyway in .NET to force the Client Cert request dialog as IIS
> would do it? Or even automatically select a client cert from the
> supplied certs? (The CAC/Smartcards house 2 or more certs.)
>
> TIA
>
Author
13 Feb 2007 1:42 PM
CynicalIrony@gmail.com
Thanks for the reply Joe. The reason I was looking for this type of
solution was we have to house both Form and Certificate login. We were
hoping to push it all through one application/website, but from what
you're saying it would not be feasable.

I was hoping that wasn't the case, but it can't hurt to ask right?

Randy
Author
13 Feb 2007 3:59 PM
Joe Kaplan
I think you really want separate apps.  :)

You could have them in separate virtual directories so you don't need
totally separate web sites, but I think the effort to try to make them work
combined would not be worth it.

Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<CynicalIr***@gmail.com> wrote in message
Show quoteHide quote
news:1171374128.602445.139580@k78g2000cwa.googlegroups.com...
> Thanks for the reply Joe. The reason I was looking for this type of
> solution was we have to house both Form and Certificate login. We were
> hoping to push it all through one application/website, but from what
> you're saying it would not be feasable.
>
> I was hoping that wasn't the case, but it can't hurt to ask right?
>
> Randy
>