Client Certificate not passing to Web Service


M

Michel Meyer

I Attached programmatically a client certificate to a Web Service Proxy like
Microsoft Exemple
// Create a new instance of a proxy class for the Bank XML Web service.
BankSession bank = new BankSession();

// Load the client certificate from a file.
X509Certificate x509 = X509Certificate.CreateFromCertFile(@"c:\user.cer");

// Add the client certificate to the ClientCertificates property of the
proxy class.
bank.ClientCertificates.Add(x509);

// Communicate with the Deposit XML Web service method,
// which requires authentication using client certificates.
bank.Deposit(500);


When try to retrieve the certificate on Web Service side:

HttpClientCertificate cs = Context.Request.ClientCertificate;

byte[] rawcert = cs.Certificate;

No certificate is passed.

Wehen I try to call the Web Service withe the I.E. Bowser and supplying a
client certificate, it woorkd fine! What I'm doing wrong?



Thanks for your help
 
Ad

Advertisements

A

alexander dimitrov

hi
i have the same problem. send me an email if you
find a solution. thanks in advance.

alexander

p.s. my email is: (e-mail address removed)

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Ad

Advertisements


Top