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

Client Certificate in D7 Soap calls

440 views
Skip to first unread message

Gordon Niessen

unread,
Dec 10, 2004, 11:46:27 AM12/10/04
to
Has anyone had any luck in using a x509Certificate to do client
authentication with a Web Service call using D7?

In doing a search of this group I found some queries about this issue,
but no solution.

I am trying to use HTTPRIO, but can't see how to assign a
X509Certificate. It is so easy under .Net, but for some reason .Net is
not working with this web service.

--
Gordon Niessen
If you aren't on the bleeding edge, you are history.

Abdullah Kauchali

unread,
Dec 15, 2004, 3:44:01 AM12/15/04
to

"Gordon Niessen">

>I am trying to use HTTPRIO, but can't see how to assign a
> X509Certificate. It is so easy under .Net, but for some reason .Net is
> not working with this web service.

Apparently you cannot dynamically accept the client certificates at runtime
(eg. the first time an HTTPS web service is invoked). This is because the
Delphi SOAP (HTTPRIO) uses existing windows IE controls ... which means you
have to first import the client cert manually by visiting the site in your
browser and then importing the certificate into the root store of the client
machine. Once this is done, your Delphi soap client can then use HTTPS for
that server address.

I hope I understood your question, though ... :)

Regards

Abdullah


Gordon Niessen

unread,
Dec 15, 2004, 11:23:58 AM12/15/04
to
Abdullah Kauchali wrote:

I am concerned with Client certificates, not server certificate
verification. This is for a service application so no user input is
possible to select a client certificate. The client certificate is
manditory.

danny heijl

unread,
Dec 15, 2004, 3:11:19 PM12/15/04
to
Gordon Niessen schreef:

> Has anyone had any luck in using a x509Certificate to do client
> authentication with a Web Service call using D7?

I have used client certs with WinInet with no problems. Delphi 7 Soap
uses WinInet, so it is certainly possible to extend Soap Http Transport
to use client certificates, but I have not done it yet.

It's a big disappointment that any further client side Soap development
for Delphi Win32 has apparently been dropped.


Danny
---

Martijn Brinkers

unread,
Mar 12, 2005, 5:44:06 AM3/12/05
to
I posted a small example of using client side certificates with SOAP

http://tinyurl.com/6jm2a

Is this what you are looking for?

Martijn Brinkers

Gordon Niessen

unread,
Mar 13, 2005, 7:13:27 PM3/13/05
to
Martijn Brinkers wrote:

Thanks I will see if I can find some time this week to try it.

0 new messages