Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public class QueryServerProperties {
"phoenix.queryserver.tls.truststore";
public static final String QUERY_SERVER_TLS_TRUSTSTORE_PASSWORD =
"phoenix.queryserver.tls.truststore.password";
public static final String QUERY_SERVER_TLS_ENABLED_PROTCOLS =
"phoenix.queryserver.tls.protocols";
public static final String QUERY_SERVER_TLS_ENABLED_CIPHERSUITES =
"phoenix.queryserver.tls.ciphersuites";
public static final String QUERY_SERVER_JMX_JSON_ENDPOINT_DISABLED =
"phoenix.queryserver.jmxjsonendpoint.disabled";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,19 @@ private void setTlsIfNeccessary(Builder<Server> builder, Configuration conf) thr
throw new Exception(String.format("if %s is enabled, %s must be specfified" , QueryServerProperties.QUERY_SERVER_TLS_ENABLED, QueryServerProperties.QUERY_SERVER_TLS_TRUSTSTORE));
}
final File tlsTruststoreFile = new File(tlsTruststore);
builder.withTLS(tlsKeystoreFile, tlsKeystorePassword, tlsTruststoreFile, tlsTruststorePassword, keystoreType);

final String tlsEnabledProtocolsString = getConf().get(QueryServerProperties.QUERY_SERVER_TLS_ENABLED_PROTCOLS);
String[] tlsEnabledProtocols = null;
if (tlsEnabledProtocolsString != null) {
tlsEnabledProtocols = tlsEnabledProtocolsString.trim().split(",");
}
final String tlsEnabledChiphersuitesString = getConf().get(QueryServerProperties.QUERY_SERVER_TLS_ENABLED_CIPHERSUITES);
String[] tlsEnabledChiphersuites = null;
if (tlsEnabledChiphersuitesString != null) {
tlsEnabledChiphersuites = tlsEnabledChiphersuitesString.trim().split(",");
}

builder.withTLS(tlsKeystoreFile, tlsKeystorePassword, tlsTruststoreFile, tlsTruststorePassword, keystoreType, tlsEnabledProtocols, tlsEnabledChiphersuites);
}
}

Expand Down