Skip to content

Commit

Permalink
Fix #80
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed May 6, 2022
1 parent 7f0ba3c commit bd13f82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Phase4CEFHttpClientSettings extends HttpClientSettings
public Phase4CEFHttpClientSettings () throws GeneralSecurityException
{
// CEF requires TLS v1.2
final SSLContext aSSLContext = SSLContext.getInstance (ETLSVersion.TLS_12.getID (), ETLSVersion.TLS_13.getID ());
final SSLContext aSSLContext = SSLContext.getInstance (ETLSVersion.TLS_12.getID ());
// But we're basically trusting all hosts - the exact list is hard to
// determine
aSSLContext.init (null, new TrustManager [] { new TrustManagerTrustAll (false) }, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Phase4ENTSOGHttpClientSettings extends HttpClientSettings
public Phase4ENTSOGHttpClientSettings () throws GeneralSecurityException
{
// CEF requires TLS v1.2
final SSLContext aSSLContext = SSLContext.getInstance (ETLSVersion.TLS_12.getID (), ETLSVersion.TLS_13.getID ());
final SSLContext aSSLContext = SSLContext.getInstance (ETLSVersion.TLS_12.getID ());
// But we're basically trusting all hosts - the exact list is hard to
// determine
aSSLContext.init (null, new TrustManager [] { new TrustManagerTrustAll (false) }, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Phase4PeppolHttpClientSettings extends HttpClientSettings
public Phase4PeppolHttpClientSettings () throws GeneralSecurityException
{
// Peppol requires TLS v1.2
final SSLContext aSSLContext = SSLContext.getInstance (ETLSVersion.TLS_12.getID (), ETLSVersion.TLS_13.getID ());
final SSLContext aSSLContext = SSLContext.getInstance (ETLSVersion.TLS_12.getID ());
// But we're basically trusting all hosts - the exact list is hard to
// determine
aSSLContext.init (null, new TrustManager [] { new TrustManagerTrustAll (false) }, null);
Expand Down

0 comments on commit bd13f82

Please sign in to comment.