Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2003

Tip: Looking for answers? Try searching our database.

Client Certificates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Emanuele Parati - 22 Sep 2003 09:03 GMT
Hi all.

I'm implementing a Web Service and a Client that comunicate with SSL.
The Client has a certificate that load with:
509Certificate.CreateFromCertFile("emanuele.cer")

Is there a way to obtain this Client Certificate directly in the Web
Service? I'd like to know the client that use my Web Service.

Thanks in advance,

Emanuele Parati
Mark Cranness - 27 Sep 2003 01:51 GMT
> Hi all.
>
[quoted text clipped - 5 lines]
> Web Service? I'd like to know the client that use my Web
> Service.

Use this server code to get the client cert sent:
(Should work, haven't tested it)

HttpContext context = HttpContext.Current;
HttpClientCertificate cert = context.Request.ClientCertificate;

Mark

I've found these links useful:
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconsecuringaspnetwebservi
ces.asp

http://msdn.microsoft.com/library/en-us/dnwebsrv/html/httpsecurity.asp

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.