Skip to content

Commit

Permalink
Update security protocol to TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahimSharafudeen authored and tdcmeehan committed Feb 6, 2025
1 parent 903520c commit 7119aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public X509Certificate[] getAcceptedIssuers()
}
};

SSLContext sslContext = SSLContext.getInstance("SSL");
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(null, new TrustManager[] {trustAllCerts}, new SecureRandom());

clientBuilder.sslSocketFactory(sslContext.getSocketFactory(), trustAllCerts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ private static Optional<SSLContext> buildSslContext(
X509TrustManager trustManager = (X509TrustManager) trustManagers[0];

// create SSLContext
SSLContext result = SSLContext.getInstance("SSL");
SSLContext result = SSLContext.getInstance("TLS");
result.init(keyManagers, new TrustManager[] {trustManager}, null);
return Optional.of(result);
}
Expand Down

0 comments on commit 7119aa2

Please sign in to comment.