Commit a9815e8a authored by Dave Cridland's avatar Dave Cridland

Merge pull request #462 from guusdk/OF-1010

OF-1010: Cannot re-init default SSLContext
parents ace9198a bf4f0275
......@@ -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