Updated TLS to v1.2 for TimeStampSimpleHttpClient

This commit is contained in:
db 2024-02-01 13:15:10 +01:00
parent e0d446c533
commit c47fe3c83a
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
HttpsURLConnection conns = (HttpsURLConnection)conn;
try {
SSLContext sc = SSLContext.getInstance("TLS");
SSLContext sc = SSLContext.getInstance("TLSv1.2");
sc.init(null, new TrustManager[]{new UnsafeTrustManager()}, RandomSingleton.getInstance());
conns.setSSLSocketFactory(sc.getSocketFactory());
conns.setHostnameVerifier((hostname, session) -> true);