You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Bindul Bhowmik (Jira)" <ji...@apache.org> on 2022/02/16 17:06:00 UTC

[jira] [Commented] (HTTPCLIENT-2205) Ability to set SSL Context and hence Keystore for every request

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

Bindul Bhowmik commented on HTTPCLIENT-2205:
--------------------------------------------

Do the examples in the repository, linked from the website, help?:
https://github.com/apache/httpcomponents-client/blob/5.1.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientCustomSSL.java
https://github.com/apache/httpcomponents-client/blob/5.1.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientCustomSSL.java

> Ability to set SSL Context and hence Keystore for every request
> ---------------------------------------------------------------
>
>                 Key: HTTPCLIENT-2205
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2205
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 5.1, 5.1.1, 5.1.3
>            Reporter: Logan
>            Priority: Major
>
> With Version 4.x it easy to the SSL context and hence keystore for every request using the following code. How with version 5.x there is no ability to do this anymore. I request to enable a feature to set the SSL context (and hence Keystore) for every request for both synchronous and asynchronous clients.
> {code:java}
> SSLContext sslContext = ...
>  HttpClient httpClient = HttpClients.custom().setSSLContext(sslContext).build();
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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