cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jane Deng (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-12773) cassandra-stress error for one way SSL
Date Thu, 13 Oct 2016 17:24:20 GMT


Jane Deng commented on CASSANDRA-12773:

Thanks Stefan. The problem is people could not use default password "cassandra" in production.
We received the report of the error.

Actually I think there could be some improvement from
public static SSLContext createSSLContext(EncryptionOptions options, boolean buildTruststore)
throws IOException

The truststore holds the public key and will be passed by the client anyway. However, the
keystore holds the private key which may or may not be passed by the client (depending on
require_client_auth = true/false). In current implementation, we load the keystore for every
client request, but decide to load the truststore or not based on the parameter "buildTruststore".
It may be better to change the context of "buildTruststore" to "buildKeystore". But this change
will affect all of the current clients and it could be another jira. 


> cassandra-stress error for one way SSL 
> ---------------------------------------
>                 Key: CASSANDRA-12773
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Jane Deng
>         Attachments: 12773-2.2.patch
> CASSANDRA-9325 added keystore/truststore configuration into cassandra-stress. However,
for one way ssl (require_client_auth=false), there is no need to pass keystore info into ssloptions.
Cassadra-stress errored out:
> {noformat}
> java.lang.RuntimeException: Error creating the initializing the
SSL Context 
> at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(

> at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesNative(

> at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(

> at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(

> at 
> at org.apache.cassandra.stress.Stress.main( 
> Caused by: Error creating the initializing the SSL Context 
> at 
> at org.apache.cassandra.stress.util.JavaDriverClient.connect(

> at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(

> ... 5 more 
> Caused by: Keystore was tampered with, or password was incorrect

> at 
> at$JKS.engineLoad( 
> at 
> at 
> ... 7 more 
> Caused by: Password verification failed 
> at 
> ... 10 more
> {noformat}
> It's a bug from CASSANDRA-9325. When the keystore is absent, the keystore is assigned
to the path of the truststore, but the password isn't taken care.

This message was sent by Atlassian JIRA

View raw message