Commit bf4f0275 authored by Guus der Kinderen's avatar Guus der Kinderen

OF-1010: Cannot re-init default SSLContext

A default SSLContext object cannot be re-initialized. This causes LDAPS to fail.
parent a67661c3
......@@ -56,7 +56,7 @@ public class SimpleSSLSocketFactory extends SSLSocketFactory implements Comparat
public SimpleSSLSocketFactory() {
try {
final SSLContext sslContext = SSLContext.getDefault();
final SSLContext sslContext = SSLContext.getInstance("TLSv1");
sslContext.init(null, // KeyManager not required
new TrustManager[] { new DummyTrustManager() },
new java.security.SecureRandom());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment