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