You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by an...@apache.org on 2014/10/18 14:11:38 UTC
git commit: Fixing protocol list also for Apache HC
Repository: jclouds
Updated Branches:
refs/heads/enforce-tls ed8d7420f -> ea7b225fa
Fixing protocol list also for Apache HC
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/ea7b225f
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/ea7b225f
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/ea7b225f
Branch: refs/heads/enforce-tls
Commit: ea7b225fa6128d103352e734af9b236bad58b2a3
Parents: ed8d742
Author: Andrew Phillips <an...@apache.org>
Authored: Sat Oct 18 07:55:28 2014 -0400
Committer: Andrew Phillips <an...@apache.org>
Committed: Sat Oct 18 07:55:28 2014 -0400
----------------------------------------------------------------------
.../apachehc/config/ApacheHCHttpCommandExecutorServiceModule.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/ea7b225f/drivers/apachehc/src/main/java/org/jclouds/http/apachehc/config/ApacheHCHttpCommandExecutorServiceModule.java
----------------------------------------------------------------------
diff --git a/drivers/apachehc/src/main/java/org/jclouds/http/apachehc/config/ApacheHCHttpCommandExecutorServiceModule.java b/drivers/apachehc/src/main/java/org/jclouds/http/apachehc/config/ApacheHCHttpCommandExecutorServiceModule.java
index facc913..0395333 100644
--- a/drivers/apachehc/src/main/java/org/jclouds/http/apachehc/config/ApacheHCHttpCommandExecutorServiceModule.java
+++ b/drivers/apachehc/src/main/java/org/jclouds/http/apachehc/config/ApacheHCHttpCommandExecutorServiceModule.java
@@ -116,6 +116,7 @@ public class ApacheHCHttpCommandExecutorServiceModule extends AbstractModule {
SSLContext context = SSLContext.getInstance("TLS");
context.init(null, null, null);
+ context.getDefaultSSLParameters().setProtocols(new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" });
return context;
}