From 26000c324d8fa28d13f744fc8c2e19a9f6b3aaf4 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Wed, 29 Jun 2016 09:29:38 -0600 Subject: [PATCH] Move comment to be in correct place Original commit: elastic/x-pack-elasticsearch@51fb594e9b88832938d6ab4d5ef1f55577e70d87 --- .../xpack/security/authc/esnative/ESNativeRealmMigrateTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/esnative/ESNativeRealmMigrateTool.java b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/esnative/ESNativeRealmMigrateTool.java index d105592178b..cf7d414733c 100644 --- a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/esnative/ESNativeRealmMigrateTool.java +++ b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/authc/esnative/ESNativeRealmMigrateTool.java @@ -145,6 +145,7 @@ public class ESNativeRealmMigrateTool extends MultiCommand { URI uri = new URI(urlString); URL url = uri.toURL(); HttpURLConnection conn; + // If using SSL, need a custom service because it's likely a self-signed certificate if ("https".equalsIgnoreCase(uri.getScheme())) { SSLConfiguration.Global globalConfig = new SSLConfiguration.Global(settings); final ClientSSLService sslService = new ClientSSLService(settings, globalConfig); @@ -162,7 +163,6 @@ public class ESNativeRealmMigrateTool extends MultiCommand { } else { conn = (HttpURLConnection) url.openConnection(); } - // If using SSL, need a custom service because it's likely a self-signed certificate conn.setRequestMethod(method); conn.setReadTimeout(30 * 1000); // 30 second timeout // Add basic-auth header