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 / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Web Service Client can not send a Client Certificate

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ricardo Q.G. - 19 Mar 2008 23:34 GMT
I'am having a really hard problem: a business partner have a web service that
expect a client certificate attached to the request.

At my client side (asp.net 1.1), as far as know i can atach a client
certificate by using "ClientCertificates.Add" on the client proxy

public class ProxyClient :
System.Web.Services.Protocols.SoapHttpClientProtocol
{
public ProxyClient()
{

System.Security.Cryptography.X509Certificates.X509Certificate Certificate =  
System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile(PathToCertificateFile);                       
  this.ClientCertificates.Add(Certificate);
}
}

it runs without any problem. it seems is all good, but my partner say that
he is not receiving the client certificate.

how can i be really sure that i am sending it?
is there a way to trace that?

it is important to say that the service is build on java, and of course runs
on a not iis server.

thanks for any kind of advice !!!
parez - 20 Mar 2008 15:14 GMT
On Mar 19, 6:34 pm, Ricardo Q.G. <Ricard...@discussions.microsoft.com>
wrote:
> I'am having a really hard problem: a business partner have a web service that
> expect a client certificate attached to the request.
[quoted text clipped - 25 lines]
>
> thanks for any kind of advice !!!

Why dont you create a new service  on your end and post it  to see if
you can receive it.
Ricardo Q.G. - 20 Mar 2008 22:28 GMT
yes, i did that...and sadly it shows (the service side shows) is not
receiving the client certificate.

the code is something like that (at service side)
== == == == == ==
string CertificateSerialNumer =
Context.Request.ClientCertificate.SerialNumber;
== == == == == ==

but the variable remains empty, and that means it is not receiving the
client certificate.

any advice?

thanks

> On Mar 19, 6:34 pm, Ricardo Q.G. <Ricard...@discussions.microsoft.com>
> wrote:
[quoted text clipped - 30 lines]
> Why dont you create a new service  on your end and post it  to see if
> you can receive it.

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.