Web Service Client can not send a Client Certificate

R

Ricardo Q.G.

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 !!!
 
P

parez

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 !!!

Why dont you create a new service on your end and post it to see if
you can receive it.
 
R

Ricardo Q.G.

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
 

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

Top