WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Security Certification error in htmlunit

Re: Security Certification error in htmlunit

by Lalitha :: Rate this Message:

| View in Thread

Hi Marc,
  Thanks for your fast reply.
I am created class file for that patch.Then How do use it?
Could you please update it ASAP?

Thanks,
V.Lalitha
Marc Guillemot wrote:
If you don't want to configure your jre to accept your self made
certificate, you can try following

https://sourceforge.net/tracker/index.php?func=detail&aid=1082409&group_id=47038&atid=448269

This is an old patch from Daniel Gredler that we never integrated (I
don't remember the reason) that allows to accept insecure certificates.

Marc.

Lalitha wrote:
>
>
> Ahmed Ashour wrote:
>> Hi,
>>   Quick start of Tomcat URL is working fine.It did not throw any security
>> exception.Our URL is confidential.Without giving uRL Can you find out the
>> root cause?
>>      I dont know.How it is working for some of the code in htmlunit and
>> how it is not working for some of the code in our application?But All code
>> is working for For google.com and other URL.If anybody knows Please let me
>> know ASAP?
>>
>> Thanks a Lot.
>>
>> Thanks,
>> V.Lalitha
>>
>>
>> I am able to reproduce the exact exeption by following the 'Quick Start'
>> of http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html.
>>
>> However, all code-snippets fail (which is expected, becuase the
>> self-generated certificate is not trusted by a CA).
>>
>> Could you provide your URL so we can investigate further.
>>
>> Many thanks.
>> Ahmed Ashour
>>
>>
>> ----- Original Message ----
>> From: Lalitha <lalitha_2883@yahoo.com>
>> To: htmlunit-user@lists.sourceforge.net
>> Sent: Saturday, March 24, 2007 10:58:57 AM
>> Subject: Re: [Htmlunit-user] Security Certification error in htmlunit
>>
>>
>> Hi,
>> Thanks for your fast reply.
>> I tried the code what you given.It is working fine for normal application
>> and our application.
>> I tried the following code :
>>   WebRequestSettings wrq=new WebRequestSettings(Our url);
>> WebResponse wr=webClient.loadWebResponse(wrq);
>>     System.out.println( wr.getStatusCode());
>> this code is also working fine for for normal and our application.It shows
>> the output is 200.
>>     when i use the following code it throws security exception
>>
>>       HtmlPage page = (HtmlPage)webClient.getPage(url);  
>>    System.out.println(page.getTitleText())
>> Can you guess What is the root cause for this?
>>
>>
>> Thanks,
>> V.Lalitha
>>
>>
>>  
>> ____________________________________________________________________________________
>> Bored stiff? Loosen up...
>> Download and play hundreds of games for free on Yahoo! Games.
>> http://games.yahoo.com/games/front
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Htmlunit-user mailing list
>> Htmlunit-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/htmlunit-user
>>
>>
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

 « Return to Thread: Security Certification error in htmlunit