Client Certificates

E

Emanuele Parati

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
 
M

Mark Cranness

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.

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/cpconsecuringaspnetwebservices.asp
http://msdn.microsoft.com/library/en-us/dnwebsrv/html/httpsecurity.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top