[
https://issues.apache.org/jira/browse/CASSANDRA-21007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18044043#comment-18044043
]
Rishabh Saraswat edited comment on CASSANDRA-21007 at 12/15/25 4:17 AM:
------------------------------------------------------------------------
[~bschoeni]
!image-2025-12-10-11-27-08-581.png!
Command for cassandra-stress was
./cassandra-stress write n=100k -transport
truststore=$HOME/IdeaProjects/Lynk/message-service/cassandra.truststore.jks
truststore-password=cassandra
keystore=$HOME/IdeaProjects/Lynk/message-service/cassandra-client.p12
keystore-password=cassandra
The fix was partially wrong. What we did was
!image-2025-12-10-11-24-29-509.png!
It gave NullPointerException.
but it turned out, we have to add another piece of code
!image-2025-12-10-11-25-13-030.png!
we have to initialize cipher suites only if the values was non-null, if it's
null, there will be auto-negotiation.
was (Author: JIRAUSER311726):
[~bschoeni]
!image-2025-12-10-11-27-08-581.png!
Command for cassandra-stress was
./cassandra-stress write n=100k -transport
truststore=$HOME/IdeaProjects/Lynk/message-service/cassandra.truststore.jks
truststore-password=cassandra
keystore=$HOME/IdeaProjects/Lynk/message-service/cassandra-client.p12
keystore-password=cassandra
The fix was partially wrong. What we did was
!image-2025-12-10-11-24-29-509.png!
It gave NullPointerException.
but it turned out, we have to add another piece of code
!image-2025-12-10-11-25-13-030.png!
we have to initialize cipher suites only if the values was non-null, if it's
null, there will be auto-negotiation.
Should I update the PR with this fix?
> cassandra-stress defaults to deprecated TLS 1.2 cipher suite
> ------------------------------------------------------------
>
> Key: CASSANDRA-21007
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21007
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Tool/stress
> Reporter: Brad Schoening
> Assignee: Rishabh Saraswat
> Priority: Normal
> Attachments: image-2025-12-02-23-04-21-498.png,
> image-2025-12-02-23-07-48-851.png, image-2025-12-02-23-08-30-782.png,
> image-2025-12-09-19-57-39-314.png, image-2025-12-09-20-11-06-834.png,
> image-2025-12-09-22-17-07-020.png, image-2025-12-10-11-24-29-509.png,
> image-2025-12-10-11-25-13-030.png, image-2025-12-10-11-27-08-581.png,
> image-2025-12-10-11-52-23-101.png
>
>
> From what I understand, this cipher, used as the default in
> {*}cassandra-stress{*}, is not compatible with TLS 1.3's handshake mechanism
> as it lacks Perfect Forward Security (PFS).
> {code:java}
> final OptionSimple ciphers = new OptionSimple("ssl-ciphers=", ".*",
> "TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA", "SSL: comma
> delimited list of encryption suites to use", false);
> {code}
> [stress/settings/SettingsTransport.java|https://github.com/apache/cassandra/blob/cassandra-4.1/tools/stress/src/org/apache/cassandra/stress/settings/SettingsTransport.java#L80]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]