Specifically request TLS 1.2 when creating the SSLContext.

This allows using TLS 1.2 on JDK 1.7, and is required for our client to support OS X 10.7 Lion.

This *could* cause issues with TLS 1.3 servers, but it looks just as likely that our old "SSL" value would have.  I.e. this probably won't make things any worse.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/com/ajtjp/geminiclient/GeminiClient.java
M src/main/java/com/ajtjp/geminiclient/GeminiClient.java +1 -1
@@ 178,7 178,7 @@ public class GeminiClient {
                }
             };
 
-            SSLContext sc = SSLContext.getInstance("SSL");
+            SSLContext sc = SSLContext.getInstance("TLSv1.2");
             sc.init(null, trustAllCerts, new java.security.SecureRandom());
             HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());