[prev in list] [next in list] [prev in thread] [next in thread]
List: htmlunit-user
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
From: Raj Singh Sisodia <raj.sisodia () impetus ! co ! in>
Date: 2011-09-12 7:33:40
Message-ID: 234DE04364DF77408930795E37BACF513370BEE2 () mail1 ! impetus ! co ! in
[Download RAW message or body]
[Attachment #2 (text/plain)]
Bug #3407974 raised against setUseInsecureSSL in HtmlUnit version 2.9.
Regards,
Raj Singh Sisodia
From: Raj Singh Sisodia
Sent: 06 September 2011 20:37
To: Ahmed Ashour; htmlunit-user@lists.sourceforge.net
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
Thanks Ahmed,
Its working now. ☺
I'll raise the bug and inform you.
Thanks
Raj Singh Sisodia
From: Ahmed Ashour [mailto:asashour@yahoo.com]
Sent: 06 September 2011 16:25
To: htmlunit-user@lists.sourceforge.net
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
Hi again,
Actually, the web server supports only SSLv3, and you have to restrict that by \
changing the SSLSocketFactory in HttpWebConnectionInsecureSSL to be the below.
This will make it for for your website, but I am taking this with HttpClient team to \
find a generic code that works for all websites.
----------------------------------
final SSLSocketFactory factory = new SSLSocketFactory(sslContext, new \
AllowAllHostnameVerifier()) { @Override
public Socket createSocket(HttpParams params) throws IOException {
Socket socket = super.createSocket(params);
javax.net.ssl.SSLSocket sslSocket = (javax.net.ssl.SSLSocket) \
socket;
sslSocket.setEnabledProtocols(new String[] { "SSLv3" });
return socket;
}
};
----------------------------------
Yours,
Ahmed
----
Blog: http://asashour.blogspot.com
________________________________
From: Ahmed Ashour <asashour@yahoo.com>
To: "htmlunit-user@lists.sourceforge.net" <htmlunit-user@lists.sourceforge.net>
Sent: Tuesday, September 6, 2011 11:04 AM
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
Hi Raj,
You are right, setUseInsecureSSL doesn't have an effect.
Please open a bug report for that.
Ahmed
----
Blog: http://asashour.blogspot.com
________________________________
From: Raj Singh Sisodia <raj.sisodia@impetus.co.in>
To: "htmlunit-user@lists.sourceforge.net" <htmlunit-user@lists.sourceforge.net>
Sent: Monday, September 5, 2011 3:24 PM
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
Hi Ahmed/Marc,
Tried again.
webClient.setUseInsecureSSL(true) does not work in this case. Importing the \
certificate both of Comcast and VeriSign in jvm also failed. Did you try to configure \
it yourself and see if it works.
Maybe this is not a bug, but if it is, then I am inclined to believe it is httpClient \
or jsse bug rather than HtmlUnit.
PFA the output of execution with -Djavax.net.debug=all
Regards,
Raj Singh Sisodia
-----Original Message-----
From: Marc Guillemot [mailto:mguillemot@yahoo.fr]
Sent: 05 September 2011 11:35
To: htmlunit-user@lists.sourceforge.net
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
Hi Ahmed,
this is interesting. Do you know if there is an easy way to export all certificates \
from Firefox (for instance) and to import them in the JVM keystore?
Cheers,
Marc.
--
HtmlUnit support & consulting from the source
Blog: http://mguillem.wordpress.com
Le 04/09/2011 19:05, Ahmed Ashour a écrit :
> Hi Raj,
>
> I tend not to consider your case a bug.
>
> It seems that the parent SSL certificate of comcast.com is "Verisign
> Class 3 Secure Server CA", which is not included by default in JVM.
>
> On the contrary, "VeriSign Class 3 Public Primary Certification
> Authority" is included by default, and that is used by most of the
> Verisign certificates (including verisign.com).
>
> You can check the JVM CA trusted certificated by:
>
> keytool -list -v -keystore $JAVA_HOME/jre/lib/security/cacerts
>
> I suggest that you install the parent certificate in you JVM, or use
> webClient.setUseInsecureSSL(true).
>
> Hope that helps,
>
> Ahmed
> ----
> Blog: http://asashour.blogspot.com
> ------------------------------------------------------------------------
> *From:* Raj Singh Sisodia \
> <raj.sisodia@impetus.co.in<mailto:raj.sisodia@impetus.co.in>>
> *To:* J <ihavealegohead@yahoo.com<mailto:ihavealegohead@yahoo.com>>;
> "htmlunit-user@lists.sourceforge.net<mailto:htmlunit-user@lists.sourceforge.net>"
> <htmlunit-user@lists.sourceforge.net<mailto:htmlunit-user@lists.sourceforge.net>>; \
> "Kellner, Matt" <mkellner@amazon.com<mailto:mkellner@amazon.com>>; Ahmed Ashour \
> <asashour@yahoo.com<mailto:asashour@yahoo.com>>
> *Sent:* Friday, September 2, 2011 12:25 AM
> *Subject:* RE: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest
>
> Hi,
> I tried everything the below post says and yet the situation does not
> change. If anyone would like, just try to connect to
> "https://tradingpartners.comcast.com/PortOut/". You will get the
> SSLPeerUnverifiedException.
> I have no idea why this is happening, the certificate seems to work fine
> in IE and chrome. And yes in HtmlUnit I have tried this with both IE and FF.
> This is my stack trace
> Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
> at
> com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:352)
> at
> org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
> at
> org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)
> at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
> at
> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
> at
> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
> at
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
> at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
> at
> com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:152)
> at
> com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1439)
> at
> com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1358)
> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:307)
> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373)
> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:358)
> ... 27 more
> Regards,
> Raj Singh Sisodia
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net<mailto:Htmlunit-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/htmlunit-user
________________________________
Need to identify code bottlenecks? Register for Impetus Webinar on ‘Rapid \
Bottleneck Identification through Software Performance Diagnostic Tools' on Aug 19.
Click http://www.impetus.com to know more. Follow us on \
www.twitter.com/impetuscalling<http://www.twitter.com/impetuscalling>
NOTE: This message may contain information that is confidential, proprietary, \
privileged or otherwise protected by law. The message is intended solely for the \
named addressee. If received in error, please destroy and notify the sender. Any use \
of this email is prohibited when received in error. Impetus does not represent, \
warrant and/or guarantee, that the integrity of this communication has been \
maintained nor that the communication is free of errors, virus, interception or \
interference.
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net<mailto:Htmlunit-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/htmlunit-user
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net<mailto:Htmlunit-user@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/htmlunit-user
________________________________
Need to identify code bottlenecks? Register for Impetus Webinar on ‘Rapid \
Bottleneck Identification through Software Performance Diagnostic Tools' on Aug 19.
Click http://www.impetus.com to know more. Follow us on \
www.twitter.com/impetuscalling<http://www.twitter.com/impetuscalling>
NOTE: This message may contain information that is confidential, proprietary, \
privileged or otherwise protected by law. The message is intended solely for the \
named addressee. If received in error, please destroy and notify the sender. Any use \
of this email is prohibited when received in error. Impetus does not represent, \
warrant and/or guarantee, that the integrity of this communication has been \
maintained nor that the communication is free of errors, virus, interception or \
interference.
________________________________
Need to identify code bottlenecks? Register for Impetus Webinar on ‘Rapid \
Bottleneck Identification through Software Performance Diagnostic Tools' on Aug 19.
Click http://www.impetus.com to know more. Follow us on \
www.twitter.com/impetuscalling
NOTE: This message may contain information that is confidential, proprietary, \
privileged or otherwise protected by law. The message is intended solely for the \
named addressee. If received in error, please destroy and notify the sender. Any use \
of this email is prohibited when received in error. Impetus does not represent, \
warrant and/or guarantee, that the integrity of this communication has been \
maintained nor that the communication is free of errors, virus, interception or \
interference.
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
{font-family:Wingdings}
@font-face
{font-family:Wingdings}
@font-face
{font-family:Calibri}
@font-face
{font-family:Tahoma}
@font-face
{font-family:Verdana}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif"}
span.BalloonTextChar
{font-family:"Tahoma","sans-serif"}
p.yiv158956252msonormal, li.yiv158956252msonormal, div.yiv158956252msonormal
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif"}
p.yiv158956252msoplaintext, li.yiv158956252msoplaintext, div.yiv158956252msoplaintext
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif"}
p.yiv158956252msochpdefault, li.yiv158956252msochpdefault, \
div.yiv158956252msochpdefault {margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif"}
p.yiv158956252msonormal1, li.yiv158956252msonormal1, div.yiv158956252msonormal1
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial","sans-serif"}
p.yiv158956252msoplaintext1, li.yiv158956252msoplaintext1, \
div.yiv158956252msoplaintext1 {margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial","sans-serif"}
p.yiv158956252msochpdefault1, li.yiv158956252msochpdefault1, \
div.yiv158956252msochpdefault1 {margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Arial","sans-serif"}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{margin-right:0cm;
margin-left:0cm;
font-size:10.0pt;
font-family:"Times New Roman","serif"}
span.yiv158956252msohyperlink1
{color:blue;
text-decoration:underline}
span.yiv158956252msohyperlinkfollowed1
{color:purple;
text-decoration:underline}
span.yiv158956252plaintextchar1
{font-family:"Arial","sans-serif"}
span.emailstyle29
{font-family:"Calibri","sans-serif";
color:#1F497D}
span.balloontextchar0
{font-family:"Tahoma","sans-serif"}
span.EmailStyle31
{font-family:"Calibri","sans-serif";
color:#1F497D}
span.apple-style-span
{}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; color:#1F497D">Bug \
#</span><span class="apple-style-span"><span style="font-size:9.0pt; \
font-family:"Arial","sans-serif"; color:#555555; \
background:#CCFF99">3407974</span></span><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; color:#1F497D"> raised \
against setUseInsecureSSL in HtmlUnit version 2.9.</span></p> <p \
class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; \
color:#1F497D"> </span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; \
color:#1F497D">Regards,</span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt; font-family:"Calibri","sans-serif"; \
color:#1F497D">Raj Singh Sisodia</span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt; font-family:"Calibri","sans-serif"; \
color:#1F497D"> </span></p> <div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; \
font-family:"Tahoma","sans-serif"">From:</span></b><span \
lang="EN-US" style="font-size:10.0pt; \
font-family:"Tahoma","sans-serif""> Raj Singh Sisodia <br>
<b>Sent:</b> 06 September 2011 20:37<br>
<b>To:</b> Ahmed Ashour; htmlunit-user@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Htmlunit-user] HELP? Simple problem with \
xmlHttpRequest</span></p> </div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; color:#1F497D">Thanks \
Ahmed,</span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; \
color:#1F497D"> </span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; color:#1F497D">Its working \
now. </span><span style="font-size:11.0pt; font-family:Wingdings; \
color:#1F497D">J</span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; \
color:#1F497D"> </span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; color:#1F497D">I'll \
raise the bug and inform you.</span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt; font-family:"Calibri","sans-serif"; \
color:#1F497D"> </span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; \
color:#1F497D">Thanks</span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; color:#1F497D">Raj Singh \
Sisodia</span></p> <p class="MsoNormal"><span style="font-size:11.0pt; \
font-family:"Calibri","sans-serif"; \
color:#1F497D"> </span></p> <div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; \
font-family:"Tahoma","sans-serif"">From:</span></b><span \
lang="EN-US" style="font-size:10.0pt; \
font-family:"Tahoma","sans-serif""> Ahmed Ashour \
[mailto:asashour@yahoo.com] <br>
<b>Sent:</b> 06 September 2011 16:25<br>
<b>To:</b> htmlunit-user@lists.sourceforge.net<br>
<b>Subject:</b> Re: [Htmlunit-user] HELP? Simple problem with \
xmlHttpRequest</span></p> </div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Hi \
again,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Actually, the \
web server supports only SSLv3, and you have to restrict that by changing the \
SSLSocketFactory in HttpWebConnectionInsecureSSL to be the below.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">This will \
make it for for your website, but I am taking this with HttpClient team to find a \
generic code that works for all websites.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">----------------------------------</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> \
final SSLSocketFactory factory = new SSLSocketFactory(sslContext, new \
AllowAllHostnameVerifier()) {<br> \
\
@Override<br> \
public Socket createSocket(HttpParams params) throws IOException {<br> \
\
Socket socket = super.createSocket(params);<br> \
\
javax.net.ssl.SSLSocket sslSocket = (javax.net.ssl.SSLSocket) socket;<br> \
\
sslSocket.setEnabledProtocols(new String[] { "SSLv3" });<br> \
\
return socket;<br> \
}<br> };<br>
----------------------------------</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Yours,<br>
Ahmed </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">----<br>
Blog: <a href="http://asashour.blogspot.com">http://asashour.blogspot.com</a></span></p>
</div>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-size:10.0pt; font-family:"Arial","sans-serif"; \
color:black"> <hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt; background:white"><b><span \
style="font-size:10.0pt; font-family:"Arial","sans-serif"; \
color:black">From:</span></b><span style="font-size:10.0pt; \
font-family:"Arial","sans-serif"; color:black"> Ahmed Ashour \
<asashour@yahoo.com><br> <b>To:</b> \
"htmlunit-user@lists.sourceforge.net" \
<htmlunit-user@lists.sourceforge.net><br> <b>Sent:</b> Tuesday, September 6, \
2011 11:04 AM<br> <b>Subject:</b> Re: [Htmlunit-user] HELP? Simple problem with \
xmlHttpRequest</span></p> <div id="yiv158956252">
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Hi \
Raj,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">You are \
right, setUseInsecureSSL doesn't have an effect.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Please open a \
bug report for that.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">Ahmed</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">----<br>
Blog: <a href="http://asashour.blogspot.com">http://asashour.blogspot.com</a></span></p>
</div>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center; background:white">
<span style="font-size:10.0pt; font-family:"Arial","sans-serif"; \
color:black"> <hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt; background:white"><b><span \
style="font-size:10.0pt; font-family:"Arial","sans-serif"; \
color:black">From:</span></b><span style="font-size:10.0pt; \
font-family:"Arial","sans-serif"; color:black"> Raj Singh Sisodia \
<raj.sisodia@impetus.co.in><br> <b>To:</b> \
"htmlunit-user@lists.sourceforge.net" \
<htmlunit-user@lists.sourceforge.net><br> <b>Sent:</b> Monday, September 5, \
2011 3:24 PM<br> <b>Subject:</b> Re: [Htmlunit-user] HELP? Simple problem with \
xmlHttpRequest</span></p> <div id="yiv158956252">
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#376092">Hi \
Ahmed/Marc,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#376092">Tried \
again.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092">webClient.setUseInsecureSSL(true) does not work in this case. \
Importing the certificate both of Comcast and VeriSign in jvm also failed. Did you \
try to configure it yourself and see if it works. </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#376092">Maybe this \
is not a bug, but if it is, then I am inclined to believe it is httpClient or jsse \
bug rather than HtmlUnit. </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#376092">PFA the \
output of execution with -Djavax.net.debug=all</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092">Regards,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:#376092">Raj Singh \
Sisodia</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:#376092"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span lang="EN-US" \
style="color:black">-----Original Message-----<br>
From: Marc Guillemot [mailto:mguillemot@yahoo.fr] <br>
Sent: 05 September 2011 11:35<br>
To: htmlunit-user@lists.sourceforge.net<br>
Subject: Re: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Hi \
Ahmed,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">this is \
interesting. Do you know if there is an easy way to export all certificates from \
Firefox (for instance) and to import them in the JVM keystore?</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">Cheers,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">Marc.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">--</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">HtmlUnit \
support & consulting from the source</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Blog: <a \
href="http://mguillem.wordpress.com" target="_blank"> <span style="color:windowtext; \
text-decoration:none">http://mguillem.wordpress.com</span></a></span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Le 04/09/2011 \
19:05, Ahmed Ashour a écrit :</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Hi \
Raj,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> I tend \
not to consider your case a bug.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> It seems \
that the parent SSL certificate of comcast.com is "Verisign</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Class 3 \
Secure Server CA", which is not included by default in JVM.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> On the \
contrary, "VeriSign Class 3 Public Primary Certification</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
Authority" is included by default, and that is used by most of the</span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Verisign \
certificates (including verisign.com).</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> You can \
check the JVM CA trusted certificated by:</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> keytool \
-list -v -keystore $JAVA_HOME/jre/lib/security/cacerts</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> I \
suggest that you install the parent certificate in you JVM, or use</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
webClient.setUseInsecureSSL(true).</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Hope \
that helps,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
Ahmed</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
----</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Blog: <a \
href="http://asashour.blogspot.com" target="_blank"> <span style="color:windowtext; \
text-decoration:none">http://asashour.blogspot.com</span></a></span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
------------------------------------------------------------------------</span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span style="color:black">> *From:* \
Raj Singh Sisodia <<a href="mailto:raj.sisodia@impetus.co.in" \
target="_blank"><span style="color:windowtext; \
text-decoration:none">raj.sisodia@impetus.co.in</span></a>></span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> *To:* J \
<<a href="mailto:ihavealegohead@yahoo.com" target="_blank"><span \
style="color:windowtext; \
text-decoration:none">ihavealegohead@yahoo.com</span></a>>;</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> "<a \
href="mailto:htmlunit-user@lists.sourceforge.net" target="_blank"><span \
style="color:windowtext; \
text-decoration:none">htmlunit-user@lists.sourceforge.net</span></a>"</span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span style="color:black">> <<a \
href="mailto:htmlunit-user@lists.sourceforge.net" target="_blank"><span \
style="color:windowtext; \
text-decoration:none">htmlunit-user@lists.sourceforge.net</span></a>>; \
"Kellner, Matt"</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> <<a \
href="mailto:mkellner@amazon.com" target="_blank"><span style="color:windowtext; \
text-decoration:none">mkellner@amazon.com</span></a>>; Ahmed Ashour <<a \
href="mailto:asashour@yahoo.com" target="_blank"><span style="color:windowtext; \
text-decoration:none">asashour@yahoo.com</span></a>></span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> *Sent:* \
Friday, September 2, 2011 12:25 AM</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
*Subject:* RE: [Htmlunit-user] HELP? Simple problem with xmlHttpRequest</span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
Hi,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> I tried \
everything the below post says and yet the situation does not</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> change. \
If anyone would like, just try to connect to</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> "<a \
href="https://tradingpartners.comcast.com/PortOut/" target="_blank"><span \
style="color:windowtext; \
text-decoration:none">https://tradingpartners.comcast.com/PortOut/</span></a>". You \
will get the</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
SSLPeerUnverifiedException.</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> I have \
no idea why this is happening, the certificate seems to work fine</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> in IE \
and chrome. And yes in HtmlUnit I have tried this with both IE and FF.</span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span style="color:black">> This is \
my stack trace</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Caused \
by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated</span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:352)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:152)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1439)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
at</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1358)</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> at \
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:307)</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> at \
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373)</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> at \
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:358)</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> ... 27 \
more</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> \
Regards,</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">> Raj \
Singh Sisodia</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">------------------------------------------------------------------------------</span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Special Offer \
-- Download ArcSight Logger for FREE!</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Finally, a \
world-class log management solution at an even better </span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">price-free! \
And you'll get a free "Love Thy Logs" t-shirt when you</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">download \
Logger. Secure your free ArcSight Logger TODAY!</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black"><a \
href="http://p.sf.net/sfu/arcsisghtdev2dev" target="_blank"><span \
style="color:windowtext; \
text-decoration:none">http://p.sf.net/sfu/arcsisghtdev2dev</span></a></span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span \
style="color:black">_______________________________________________</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black">Htmlunit-user \
mailing list</span></p> </div>
<div>
<p class="MsoNormal" style="background:white"><span style="color:black"><a \
href="mailto:Htmlunit-user@lists.sourceforge.net" target="_blank"><span \
style="color:windowtext; \
text-decoration:none">Htmlunit-user@lists.sourceforge.net</span></a></span></p> \
</div> <div>
<p class="MsoNormal" style="background:white"><span style="color:black"><a \
href="https://lists.sourceforge.net/lists/listinfo/htmlunit-user" \
target="_blank"><span style="color:windowtext; \
text-decoration:none">https://lists.sourceforge.net/lists/listinfo/htmlunit-user</span></a></span></p>
</div>
</div>
<p class="MsoNormal" style="background:white"><span \
style="color:black"> </span></p> <div class="MsoNormal" align="center" \
style="text-align:center; background:white"> <span style="color:black">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="background:white"><span style="font-size:7.5pt; \
font-family:"Verdana","sans-serif"; color:gray"><br> Need to \
identify code bottlenecks? Register for Impetus Webinar on ‘Rapid Bottleneck \
Identification through Software Performance Diagnostic Tools' on Aug 19. <br>
<br>
Click <a href="http://www.impetus.com">http://www.impetus.com</a> to know more. \
Follow us on <a href="http://www.twitter.com/impetuscalling">www.twitter.com/impetuscalling</a>
<br>
<br>
<br>
NOTE: This message may contain information that is confidential, proprietary, \
privileged or otherwise protected by law. The message is intended solely for the \
named addressee. If received in error, please destroy and notify the sender. Any use \
of this email is prohibited when received in error. Impetus does not represent, \
warrant and/or guarantee, that the integrity of this communication has been \
maintained nor that the communication is free of errors, virus, interception or \
interference.</span></p> </div>
<p class="MsoNormal" style="margin-bottom:12.0pt; background:white"><span \
style="color:black"><br>
------------------------------------------------------------------------------<br>
Special Offer -- Download ArcSight Logger for FREE!<br>
Finally, a world-class log management solution at an even better <br>
price-free! And you'll get a free "Love Thy Logs" t-shirt when you<br>
download Logger. Secure your free ArcSight Logger TODAY!<br>
<a href="http://p.sf.net/sfu/arcsisghtdev2dev" \
target="_blank">http://p.sf.net/sfu/arcsisghtdev2dev</a><br> \
_______________________________________________<br> Htmlunit-user mailing list<br>
<a href="mailto:Htmlunit-user@lists.sourceforge.net" \
target="_blank">Htmlunit-user@lists.sourceforge.net</a><br> <a \
href="https://lists.sourceforge.net/lists/listinfo/htmlunit-user" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/htmlunit-user</a></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt; background:white"><span \
style="color:black"><br>
------------------------------------------------------------------------------<br>
Special Offer -- Download ArcSight Logger for FREE!<br>
Finally, a world-class log management solution at an even better <br>
price-free! And you'll get a free "Love Thy Logs" t-shirt when you<br>
download Logger. Secure your free ArcSight Logger TODAY!<br>
<a href="http://p.sf.net/sfu/arcsisghtdev2dev" \
target="_blank">http://p.sf.net/sfu/arcsisghtdev2dev</a><br> \
_______________________________________________<br> Htmlunit-user mailing list<br>
<a href="mailto:Htmlunit-user@lists.sourceforge.net">Htmlunit-user@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/htmlunit-user" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/htmlunit-user</a></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt; \
font-family:"Verdana","sans-serif"; color:gray"><br> Need to \
identify code bottlenecks? Register for Impetus Webinar on ‘Rapid Bottleneck \
Identification through Software Performance Diagnostic Tools' on Aug 19. <br>
<br>
Click <a href="http://www.impetus.com">http://www.impetus.com</a> to know more. \
Follow us on <a href="http://www.twitter.com/impetuscalling">www.twitter.com/impetuscalling</a>
<br>
<br>
<br>
NOTE: This message may contain information that is confidential, proprietary, \
privileged or otherwise protected by law. The message is intended solely for the \
named addressee. If received in error, please destroy and notify the sender. Any use \
of this email is prohibited when received in error. Impetus does not represent, \
warrant and/or guarantee, that the integrity of this communication has been \
maintained nor that the communication is free of errors, virus, interception or \
interference.</span></p> </div>
<br>
<hr>
<font face="Verdana" color="Gray" size="1"><br>
Need to identify code bottlenecks? Register for Impetus Webinar on ‘Rapid \
Bottleneck Identification through Software Performance Diagnostic Tools' on Aug 19. \
<br> <br>
Click http://www.impetus.com to know more. Follow us on \
www.twitter.com/impetuscalling <br>
<br>
<br>
NOTE: This message may contain information that is confidential, proprietary, \
privileged or otherwise protected by law. The message is intended solely for the \
named addressee. If received in error, please destroy and notify the sender. Any use \
of this email is prohibited when received in error. Impetus does not represent, \
warrant and/or guarantee, that the integrity of this communication has been \
maintained nor that the communication is free of errors, virus, interception or \
interference.<br> </font>
</body>
</html>
[Attachment #4 (--===============8812656493021398935==)]
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic