| Bug #107552 | Documentation typo in variable Name | ||
|---|---|---|---|
| Submitted: | 13 Jun 2022 16:43 | Modified: | 29 Jun 2022 10:32 |
| Reporter: | Maite Gonzalez Mendoza | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | Connector / J Documentation | Severity: | S3 (Non-critical) |
| Version: | 8.0.28+ | OS: | Debian |
| Assigned to: | Filipe Silva | CPU Architecture: | Any |
| Tags: | cipher suites, spring boot, SSL, tls, tlsCiphersuites | ||
[13 Jun 2022 16:43]
Maite Gonzalez Mendoza
[29 Jun 2022 10:32]
Filipe Silva
Hi Maite, thanks for your interest in MySQL Connector/J. There's nothing wrong with the property name. The correct one is "tlsCiphersuites". Your first example doesn't work because you are specified a cipher suite not recognized by Java. The names you can use here are a subset of the cipher suites officially supported by Java: https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html#SunJSSEP.... So, in your case, you should probably use: "tlsVersions=TLSv1.2&tlsCiphersuites=TLS_DHE_RSA_WITH_AES_256_CBC_SHA256". Your second case works simply because "tlsCipherSuites" is not a recognized connection property and so Connector/J ignores it. In this case the TLS negotiation happens without considering your cipher suite selection. I hope this clarifies it.
