Thread View: borland.public.cppbuilder.webservices.soap
1 messages
1 total messages
Started by Sean Klingler
Thu, 07 Aug 2008 14:46
Client certificates in web service connection
Author: Sean Klingler
Date: Thu, 07 Aug 2008 14:46
Date: Thu, 07 Aug 2008 14:46
27 lines
2425 bytes
2425 bytes
I have a client that needs me to connect to a service they have that uses a client certificate. They gave me a .cer certificate file, but I'm not sure how to make use of it. I did use MMS to install it on my system, but how to reference it in my code when the connection is attempted. I'm using code I generated using the WSDL Importer. I found this example in the Delphi world using CAPICOM. http://groups.google.com/group/borland.public.delphi.webservices.soap/browse_thread/thread/11aa16819d89f2e1/86d553718d2fc5c2?q=martijn+brinkers+soap+certificates First, is this still the best way to do it? Is there another way? I would have thought that some Indy interaction would be possible since that would supposedly already do this, but I don't see any way to make it work with THTTPRIO. I'm having problems making this work in the C++ world. I created the _tlb and _ocx files from importing the CAPICOM DLL, but I can't make all the code compile. For instance, after opening the store, finding the certificates is problematic. Tlibimp did generate a TCertificates class that has the Find method on it, but TStore->Certificates returns an ICertificatesPtr, not a TCertificates. I don't know how to take that and access the methods such as Find that are part of TCertificates. Is there a C++ example like the one above for Delphi somewhere? Or can somebody help me get going a little further? I'm running RAD Studio 2007 using C++.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads