Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new SSL option to allow overriding default cipher suites. #61

Conversation

juhani-hietikko
Copy link
Contributor

I've added an option to specify SSL cipher suites when calling build-cluster.

Datastax Java driver's default cipher suites (SSLOptions/DEFAULT_SSL_CIPHER_SUITES) require installing the Java Cryptography Extension Unlimited Strength Jurisdiction Policy Files. Without installing these, connecting to a cluster with SSL fails:
"java.lang.IllegalArgumentException: Cannot support TLS_RSA_WITH_AES_256_CBC_SHA with currently installed providers"

One way to work around this is by specifying cipher suites that work with standard JCE in the SSLOptions given to the Java driver's Cluster builder. That is the motive for this change.

:cipher-suites is expected to contain a Seq (e.g. vector) of Strings, where each item specifies a cipher suite (e.g. "TLS_RSA_WITH_AES_128_CBC_SHA"). When the :cipher-suites option is omitted, build-ssl-options and build-cluster work as before, using default cipher suites from SSLOptions.

@michaelklishin
Copy link
Member

Thanks. Can you please update ChangeLog.md with some realistic code examples? Currently it is not very clear about what format should the suites be passed in.

@michaelklishin
Copy link
Member

@arr-ee FYI.

@juhani-hietikko juhani-hietikko force-pushed the cipher-suites-as-ssl-option branch from 1817e3d to 8a35118 Compare August 27, 2014 14:04
@juhani-hietikko
Copy link
Contributor Author

Thanks for the quick response! Yeah, I missed the changelog in the first place. As you can see, I'm working on it but something with the markup needs fixing. I'm amending to the same commit, so apparently the PR gets automatically updated when I push. I'll push a new fix to the changelog soon.

@juhani-hietikko juhani-hietikko force-pushed the cipher-suites-as-ssl-option branch from 8a35118 to 293b00a Compare August 27, 2014 14:19
@juhani-hietikko
Copy link
Contributor Author

How does the changelog look like now? Anything else? I see the CI build is failing, but it seems to be flaky.

michaelklishin added a commit that referenced this pull request Aug 27, 2014
A new SSL option to allow overriding default cipher suites.
@michaelklishin michaelklishin merged commit e328d2d into clojurewerkz:master Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants