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 / ASP.NET / Web Services / June 2004

Tip: Looking for answers? Try searching our database.

Client Certificate not passing to Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michel Meyer - 12 Jun 2004 09:58 GMT
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!

Rate this thread:







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.