Thanks for the help again.
To answer the questions,
There is a file Carcets in the security folder under jre/lib.
But if I even try yahoo.com as you asked , I get errors. If I even try
Verisign.com I get errors.
Now do you have a code snip for how to get a full handshake ? In order to try
that too.
Thanks
bashiro
One way that you can try to debug this issue is to
A) Check what certificates are available in the keystore (the keytool
thing that Tim mentioned).
B) Are you getting any certificates recognized at all? E.g. if you go to
yahoo using https, does that work?
C) You can also try to output the full http handshake. Then you will be
able to tell whether it could find the keystore at all, whether the CRL
check failed or the actual certificate getting, etc.
Vivek
Bashiro
--- On Tue 12/13, Satsangi, Vivek < [EMAIL PROTECTED] > wrote:
From: Satsangi, Vivek [mailto: [EMAIL PROTECTED]
To: [email protected], [EMAIL PROTECTED]
Date: Tue, 13 Dec 2005 15:03:58 -0500
Subject: RE: HttpClient and Simple SSL
Hello Bashiro, One way that you can try to debug this issue is to A) Check
what certificates are available in the keystore (the keytoolthing that Tim
mentioned).B) Are you getting any certificates recognized at all? E.g. if you
go toyahoo using https, does that work?C) You can also try to output the full
http handshake. Then you will beable to tell whether it could find the keystore
at all, whether the CRLcheck failed or the actual certificate getting,
etc.Vivek-----Original Message-----From: bashiro [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 2:48 PMTo: [EMAIL PROTECTED]: Re: HttpClient
and Simple SSLHello guys,Thanks for the tips I have been getting.Here is a code
snip of the exception i am
getting;========================================================javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:
No trusted certificate found at
com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)=====================================================================0I
will be happy for any help.Bashiro --- On Tue 12/13, Tim Watts < [EMAIL
PROTECTED] > wrote:From: Tim Watts [mailto: [EMAIL PROTECTED]: [EMAIL
PROTECTED]: Tue, 13 Dec 2005 08:34:33 -0500Subject: Re: HttpClient and Simple
SSLBelow is about the simplest example you can write. As you can seethere's
nothing distinctive other than that 's' on https. What exceptionare you
getting? I have to say that this works fine on my Linux box butit would
probably throw a "CertificateException: Could not find trustedcertificate" on
my Windows box. Why?, I don't know. Don't really thinkit's an OS issue;
something different about the java environment on eachmachine. I'm still
puzzling about
that...importorg.apache.commons.httpclient.HttpClient;importorg.apache.commons.httpclient.HttpMethod;importorg.apache.commons.httpclient.methods.GetMethod;public
class Test {public static void main(String[] args) throws Exception
{HttpClient client = new HttpClient(); HttpMethod get =
newGetMethod("https://www.verisign.com/"); int httpRc
=client.executeMethod(get); System.out.println(httpRc); }}OnTuesday
13 December 2005 07:43, bashiro wrote:> Thanks for the tips.>You know I always
get exeption when working with> ssl. That i why i want an examplesomeone has
doe using> the httpclient, so that I can edit that anduse.>> I just want to
compare other examples with the use guide and>then work further on.>> Thanks>>
Bashiro>> --- On Tue 12/13, Tim Watts< [EMAIL PROTECTED] > wrote:> From: Tim
Watts [mailto:[EMAIL PROTECTED]> To: [email protected]> Date:
Tue,13 Dec 2005 06:38:48 -0500> Subject: Re: HttpClient and Simple SSL>>
OnTuesday
13 December 2005 05:08, bashiro wrote:> 1. A simple way to work>with HttpClient
and SSL ?> (Not the user manual ofHttpclient)Mostly,> I've found working
with SSL to be quitetransparent.> All what I mean is a> way to import SSL
certificate andwork further with> it. An example is ;> Let's say I want to work
withHttps://www.versign.com.> I heard I have to> first right click on
theSecurity key-lock icon on the> tray to save it as> a cert. Then importit in
java .Not sure about the right-click business but> try
$JAVAHOME/jre/bin/keytool -help (especially-import).Hope this
helps>somewhat.------------------------------------------------------------------>---To
unsubscribe, e-mail:[EMAIL PROTECTED]> additional commands,e-mail: [EMAIL
PROTECTED]>>_______________________________________________> No banners. No
pop-ups.No kidding.> Make My Way your home on the Web
-http://www.myway.com>>>>--------------------------------------------------------------------->To
unsubscribe, e-mail: [EMAIL PROTECTED]>For additional commands, e-mail:[EMAIL
PROTECTED] unsubscribe, e-mail:[EMAIL PROTECTED] additional commands,e-mail:
[EMAIL PROTECTED] banners. No pop-ups. No kidding.Make My Way your home on the
Web -
http://www.myway.com---------------------------------------------------------------------To
unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL
PROTECTED] unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail:
[EMAIL PROTECTED]
_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way your home on the Web - http://www.myway.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]