RE: HTTP-Basic authentication over SSL

From: Sharib Anis <>
Date: Wed, 16 Jun 2004 10:18:55 +0800


I did everything as required (at least that's what I think), from here
( and
your mail, but during runtime, I get this nagging exception: Couldn't find trusted

I have set up a client keystore and have also imported the server
certificate (as trusted) into it. I'm using this keystore as a
truststore. My client and server are running on different machines. I'm
not sure if the problem is on the client or server side. Also, I'm not
sure if it's a truststore issue. I tried to use JRE (cacerts)
truststore, but that didn't help either.

Sorry for the bother, but hope you can help.

Thanks and Regards,
Sharib Anis

-----Original Message-----
From: Andy Wolf []
Sent: 15 June 2004 05:06
Subject: Re: HTTP-Basic authentication over SSL


Sharib Anis wrote:
> Does anyone know how to set up HTTP-Basic authentication over SSL for
> JAX-RPC? I saw some documentation in JWSDP 1.0 tutorial, but the later

> JWSDP tutorials don't have this. It's either HTTP-Basic *or* SSL...

Well, you got to establish an HTTPS connection and then you send the
required credentials. On the server side you have to set up the Tomcat
HTTPS connector with a certificate and the corresponding pair of
public/private keys. Then you specify in the deployment descriptor that
authentication is required and you are done...

To specify the username and password you need to use stub._setProperty()

and to specify the two key stores you use System.setProperty(). Both key

stores have to exist, need to be specified and do not have to be the
same file...


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail: