We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b01c2e2 commit c78291bCopy full SHA for c78291b
src/main/java/com/ibm/cloud/sdk/core/http/HttpClientSingleton.java
@@ -186,8 +186,8 @@ private void setupTLSProtocol(final OkHttpClient.Builder builder) {
186
187
X509TrustManager trustManager = (X509TrustManager) trustManagers[0];
188
189
- System.setProperty("com.ibm.jsse2.overrideDefaultTLS", "true");
190
- SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
+ // On IBM JDKs this gets only TLSv1
+ SSLContext sslContext = SSLContext.getInstance("TLS");
191
192
sslContext.init(null, new TrustManager[] { trustManager }, null);
193
SSLSocketFactory sslSocketFactory = new DelegatingSSLSocketFactory(sslContext.getSocketFactory()) {
0 commit comments