Web Service Client can not send a Client Certificate

  • Thread starter Thread starter Ricardo Q.G.
  • Start date Start date
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 !!!
 
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.
 
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
 
Back
Top