From 653ae8026c80b200390791f31f59b49a0909e986 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 25 Jan 2014 16:18:05 +0000 Subject: [PATCH] Use Java 1.6 method to obtain default system SSLContext git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1561331 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/http/conn/ssl/SSLContexts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java b/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java index 87a17a711..3d15ff686 100644 --- a/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java +++ b/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java @@ -72,7 +72,7 @@ public class SSLContexts { */ public static SSLContext createSystemDefault() throws SSLInitializationException { try { - return SSLContext.getInstance("Default"); + return SSLContext.getDefault(); } catch (final NoSuchAlgorithmException ex) { return createDefault(); }