Created
March 9, 2020 12:45
-
-
Save matrixcloud/d782740846d99158aab896ea53664c25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by atom on 6/13/2019. | |
*/ | |
public class DefaultSslFactory { | |
private DefaultSslFactory() {} | |
public static SslContextFactory getSslContextFactory() { | |
SslContextFactory sslContextFactory = new SslContextFactory(); | |
sslContextFactory.setValidateCerts(false); | |
sslContextFactory.setTrustAll(true); | |
return sslContextFactory; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment