From: Vasudevan C. <vco...@gm...> - 2016-10-12 21:33:33
|
Hi Ahmed, Thanks for the answer. I tried with CACERT of JDK 1.8.0_102 as suggested. It worked for the for the first time but when I restarted the app and retried the same site it was failing with peer not authenticated error. Any idea why it fails. Regards Vasu On 13 October 2016 at 00:01, Ahmed Ashour <asa...@ya...> wrote: > Hi Vasu, > > The below works with Java 1.8.0_102. > > WebClient webClient=new WebClient(); > HtmlPage xmlPage= webClient.getPage("https:// > www.careerbuilder.com/Share/LogIn.aspx?"); > > Ahmed > > ------------------------------ > *From:* Vasudevan Comandur <vco...@gm...> > *To:* "htm...@li..." <htmlunit-user@lists. > sourceforge.net> > *Sent:* Wednesday, October 12, 2016 7:39 PM > *Subject:* [Htmlunit-user] SSL peer not authenticated error on https thru > HTMLUnit > > All, > > I am using HTMLUnit to access some sites. I am getting the error SSL > peer > not authenticated. I have the default cacert file that comes with java. > > When I start the URL "https://www.careerbuilder.com/Share/LogIn.aspx?" > with > webclient, I am getting peer not authenticated exception. I have > disabled > javascript in webclient. > > How can I find out to which site HTMLUnit is connecting to that causes > the error. > > The real browser is displaying the login screen when I access the > site through > the above URL. > > Any pointers to solve this issue is appreciated. > Thanks in advance. > > Regards > Vasu > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |