[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15608336#comment-15608336
 ] 

Bela Roboz edited comment on HTTPCLIENT-1785 at 10/26/16 12:40 PM:
-------------------------------------------------------------------

OK, I supposed :) It's only a note for others If they meet with this problem :) 
Bye: Beci


was (Author: robozb):
OK, I supposed :) It's only a note for others Ih they meet with this problem :) 
Bye: Beci

> If you use custom trust manager/ protocol the "connection.timeout" param will 
> throw SSLHandshakeException
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1785
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1785
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 3.1 (end of life)
>            Reporter: Bela Roboz
>
> Example:
>       X509TrustManager 
> manager=UtilsSSL.getX509TrustManager("d:/tmpkulcstarolo.jks","???");
>       URL cel2=new URL("https://www.your_domain.com:443/tmp/alma/teszt.php";);
>       
>       
>       Protocol myhttps = new Protocol("https", new 
> EgyediSSLProtocolSocketFactory(manager), 443);
>       
>       HttpClient httpclient = new HttpClient();
>       httpclient.getHostConfiguration().setHost("www.conforg.hu", 443, 
> myhttps);
>           // The next row cause exception, without this everything ok 
>          
> httpclient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
>       GetMethod httpget = new GetMethod("/tmp/alma/teszt.php?sajt=hihike");
>       try {
>         httpclient.executeMethod(httpget);
>         System.out.println(httpget.getResponseBodyAsString());
>       } finally {
>         httpget.releaseConnection();
>       }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to