HTTPCORE-398: corrected SSLContext creation example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1674481 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bf0844103a
commit
50cb3a3d4e
|
@ -436,7 +436,6 @@ HttpClients.custom()
|
|||
<programlisting><![CDATA[
|
||||
KeyStore myTrustStore = <...>
|
||||
SSLContext sslContext = SSLContexts.custom()
|
||||
.useTLS()
|
||||
.loadTrustMaterial(myTrustStore)
|
||||
.build();
|
||||
SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext);
|
||||
|
|
Loading…
Reference in New Issue