Skip to content

Instantly share code, notes, and snippets.

@matrixcloud
Created March 9, 2020 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matrixcloud/d782740846d99158aab896ea53664c25 to your computer and use it in GitHub Desktop.
Save matrixcloud/d782740846d99158aab896ea53664c25 to your computer and use it in GitHub Desktop.
/**
* 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