HTTPCLIENT-952: Trust store parameter is ingored by SSLSocketFactory
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953160 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c4c6cfc413
commit
ade1571f00
|
@ -1,6 +1,10 @@
|
|||
Changes since 4.1 ALPHA2
|
||||
-------------------
|
||||
|
||||
* [HTTPCLIENT-952] Trust store parameter is ingored by SSLSocketFactory
|
||||
(affects version 4.1-alpha2 only)
|
||||
Contributed by Oleg Kalnichevski <olegk at apache.org>
|
||||
|
||||
* [HTTPCLIENT-937] CacheEntry made immutable; now uses immutable HttpEntity
|
||||
to store cached content.
|
||||
Contributed by David Mays <david_mays at comcast.com> and
|
||||
|
|
|
@ -193,7 +193,7 @@ public class SSLSocketFactory implements LayeredSchemeSocketFactory, LayeredSock
|
|||
KeyManager[] keymanagers = kmfactory.getKeyManagers();
|
||||
TrustManagerFactory tmfactory = TrustManagerFactory.getInstance(
|
||||
TrustManagerFactory.getDefaultAlgorithm());
|
||||
tmfactory.init(keystore);
|
||||
tmfactory.init(truststore);
|
||||
TrustManager[] trustmanagers = tmfactory.getTrustManagers();
|
||||
if (trustmanagers != null && trustStrategy != null) {
|
||||
for (int i = 0; i < trustmanagers.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue