in src/main/java/org/apache/cassandra/sidecar/CassandraSidecarDaemon.java [127:146]
private void validate()
{
if (config.isSslEnabled())
{
try
{
if (config.getKeyStorePath() == null || config.getKeystorePassword() == null)
throw new IllegalArgumentException("keyStorePath and keyStorePassword must be set if ssl enabled");
SslUtils.validateSslOpts(config.getKeyStorePath(), config.getKeystorePassword());
if (config.getTrustStorePath() != null && config.getTruststorePassword() != null)
SslUtils.validateSslOpts(config.getTrustStorePath(), config.getTruststorePassword());
}
catch (Exception e)
{
throw new RuntimeException("Invalid keystore parameters for SSL", e);
}
}
}