Skip to content

Commit

Permalink
0002886: Disabling self signed certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Oct 27, 2017
1 parent e06317d commit efddacb
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -54,6 +54,7 @@
import org.jumpmind.properties.TypedProperties;
import org.jumpmind.security.SecurityConstants;
import org.jumpmind.symmetric.common.ParameterConstants;
import org.jumpmind.symmetric.common.ServerConstants;
import org.jumpmind.symmetric.common.SystemConstants;
import org.jumpmind.symmetric.transport.TransportManagerFactory;
import org.jumpmind.util.AppUtils;
Expand Down Expand Up @@ -121,7 +122,10 @@ public AbstractCommandLauncher(String app, String argSyntax, String messageKeyPr
this.app = app;
this.argSyntax = argSyntax;
this.messageKeyPrefix = messageKeyPrefix;
TransportManagerFactory.initHttps("all", true);
TypedProperties serverProperties = new TypedProperties(System.getProperties());
boolean allowSelfSignedCerts = serverProperties.is(ServerConstants.HTTPS_ALLOW_SELF_SIGNED_CERTS, true);
String allowServerNames = serverProperties.get(ServerConstants.HTTPS_ALLOW_SELF_SIGNED_CERTS, "all");
TransportManagerFactory.initHttps(allowServerNames, allowSelfSignedCerts);
}

protected static void initFromServerProperties() {
Expand Down

0 comments on commit efddacb

Please sign in to comment.