HttpClient supporting multiple TLS protocols
问题 We're writing an app that must communicate with a few servers using HTTPS. It needs to communicate with AWS (using the AWS libraries) and also with some of our internal services that use TLS 1.2. I started off by changing my HttpClient to use a TLS 1.2 SSLContext: public static SchemeRegistry buildSchemeRegistry() throws Exception { final SSLContext sslContext = SSLContext.getInstance("TLSv1.2"); sslContext.init(createKeyManager(), createTrustManager(), new SecureRandom()); final