Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Client certificates in web service connection

9 views
Skip to first unread message

Sean Klingler

unread,
Aug 7, 2008, 10:46:56 AM8/7/08
to
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++.


0 new messages