Skip to content

Commit

Permalink
Fix ssl issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanusta committed Mar 8, 2024
1 parent f0fe353 commit 65521d0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/com/kodedu/boot/AppStarter.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ private static CmdlineConfig parseCmdArgs(String[] args) {
}

private static void setJvmProperties() {
// http://bit.ly/1Euk8hh
System.setProperty("jsse.enableSNIExtension", "false");
// System.setProperty("https.protocols", "SSLv3");

System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
System.setProperty("java.awt.headless", "false");
}
Expand All @@ -139,7 +135,7 @@ private static void initializeSSLContext() {
HttpsURLConnection.setDefaultHostnameVerifier((h, s) -> true);
SSLContext.setDefault(sc);
} catch (Exception e) {
e.printStackTrace();
logger.error(e.getMessage(), e);
}
}

Expand Down

0 comments on commit 65521d0

Please sign in to comment.