ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <dant...@yorku.ca>
Subject Re: Newbie question - HTTPS and testkeys
Date Tue, 28 Jun 2005 19:52:58 GMT

There's alot of doc on how to use Https out there but you can also check
this out:
http://www.yorku.ca/dkha/docs/jsse_cert/jsse_cert.htm

which should hopefully give you an idea on how things work.
Be sure to look at the java code for an idea on what you need to code.

Good luck!

Regards,
Daniel

On Fri, 24 Jun 2005, Eric BOYER wrote:

> Somebody has got an idea ?
>
> For your your information I tried for my testkeys:
>
> keytool -genkey -keystore testkeys -alias footcrix
>
> keytool -export -alias footcrix -file footcrix.cer -keystore testkeys
>
> keytool -keystore /usr/local/j2sdk1.4.2_07/jre/lib/security/cacerts
> -import -file footcrix.cer -alias footcrix
>
>
>
> keytool -list -keystore
> /usr/local/j2sdk1.4.2_07/jre/lib/security/cacerts -alias footcrix
> Tapez le mot de passe du Keystore :  changeit
> footcrix, 22 juin 2005, trustedCertEntry,
> Empreinte du certificat (MD5) :
> A2:0F:8C:95:86:0D:AF:DD:FA:3D:F1:0F:85:0B:D5:B6
>
>
> Can you tell me why I have :
> Error: sun.security.validator.ValidatorException: No trusted certificate
> found
>
> Thanks for your Help !
>
> Eric
>
>
> Eric BOYER a écrit :
>
> >
> > Thanks for all your answers !
> >
> > My server is apparently OK ...
> >
> > But My client  says :
> > Avoiding obscuring previous error by supressing error encountered
> > while ending request: org.apache.xmlrpc.XmlRpcClientException:
> > Exception closing URLConnection
> > Error: sun.security.validator.ValidatorException: No trusted
> > certificate found
> >
> > And My server says :
> > javax.net.ssl.SSLHandshakeException: Received fatal alert:
> > certificate_unknown
> >
> > My client code is :
> > "
> > public static void main(String arguments[]) {
> >        ClientBonjourSecure client = new ClientBonjourSecure();
> >
> >        try {
> >            client.readEntries();
> >        } catch (IOException ioe) {
> >            System.out.println("IO Exception: " + ioe.getMessage());
> >            ioe.printStackTrace();
> >        } catch (XmlRpcException xre) {
> >            System.out.println("XML-RPC Exception: " + xre.getMessage());
> >        }
> >    }
> >
> >    public void readEntries() throws IOException, XmlRpcException {
> >       SecureXmlRpcClient client = new
> > SecureXmlRpcClient("https://footcrix:10500/RPC2");
> >       Vector params = new Vector();
> >       params.addElement("Eric");
> >
> >        try
> >        {
> >            String res = (String)
> > client.execute("bonjour.disMoiBonjour",params);
> >            System.out.println(res);
> >        }
> >        catch (Exception ex)
> >        {
> >            System.err.println("Error: " + ex.getMessage());
> >        }
> >    }
> >
> > May be I didn't produced my testkeys correctly ? :
> > keytool -genkey -keystore testkeys
> >
> > Thanks again for your help !
> >
> > Eric
> >
>

Mime
View raw message