getSocketFactory() should only be called on a sslContext that has been initialized.

This commit is contained in:
mores 2013-05-06 13:46:47 -04:00
parent c36c8e952c
commit 2b53bdf882
1 changed files with 1 additions and 1 deletions

View File

@ -118,11 +118,11 @@ public final class HttpsURLConnectionFactory implements HttpURLConnectionFactory
final KeyManagerFactory keyManager = KeyManagerFactory.getInstance(this.sslConfiguration.getProperty("keyManagerType", "SunX509"));
keyManager.init(keyStore, this.sslConfiguration.getProperty("certificatePassword").toCharArray());
sslContext.init(keyManager.getKeyManagers(), null, null);
return sslContext.getSocketFactory();
}
}
}
return sslContext.getSocketFactory();
} catch (final Exception e) {
LOGGER.error(e.getMessage(), e);
} finally {