You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Alexey Serba (JIRA)" <ji...@apache.org> on 2013/01/10 12:24:13 UTC

[jira] [Commented] (HTTPCLIENT-789) Support for passing an SSLContext to the SSLSocketFactory of HttpClient

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

Alexey Serba commented on HTTPCLIENT-789:
-----------------------------------------

{quote}
If one day HttpClient was made to require Java 6, it could be possible to use the default SSLContext when the constructor argument is null:
{code}
        if (sslContext == null) {
            this.sslContext = SSLContext.getDefault();
        } else {
            this.sslcontext = sslContext;
        }
{code}
{quote}

What about using reflection and using default SSL context on java 6? It would make configuring SSL for http client 4.x much easier. Thoughts?
                
> Support for passing an SSLContext to the SSLSocketFactory of HttpClient
> -----------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-789
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-789
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: Snapshot
>            Reporter: Bruno Harbulot
>             Fix For: 4.0 Beta 1
>
>         Attachments: sslcontext-682001.patch
>
>
> Would it be possible to use an existing instance of SSLContext to initialise an SSLSocketFactory? This would allow using SSLContexts configured with more options, such as CRLs.
> (This follows the thread of the httpclient-commons-dev list: http://marc.info/?l=httpclient-commons-dev&m=121737017814116&w=2 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org