Created
December 17, 2014 08:59
-
-
Save jfarcand/aa11beb487b353e54419 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AsyncHttpClient c = new AsyncHttpClient(new AsyncHttpClientConfig.Builder().(new SSLEngineFactory() { | |
@Override | |
public SSLEngine newSSLEngine(String s, int i) throws GeneralSecurityException { | |
SSLEngine sslEngine = sslContext.createSSLEngine(); | |
sslEngine.setUseClientMode(true); | |
sslEngine.setEnabledCipherSuites(new String[]{"SSL_DH_anon_WITH_RC4_128_MD5"}); | |
return sslEngine; | |
} | |
}).build()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment