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
alexander dimitrov - 17 Jun 2004 13:36 GMT
hi
i have the same problem. send me an email if you
find a solution. thanks in advance.
alexander
p.s. my email is: sapa@abv.bg
Ian - 29 Jun 2004 21:50 GMT
Yeah, I've got the same problem as well.
Has anyone heard anything?
Ian
> hi
> i have the same problem. send me an email if you
[quoted text clipped - 6 lines]
> *** Sent via Devdex http://www.devdex.com ***
> Don't just participate in USENET...get rewarded for it!