ssl - works - Can a TLS 1.2 server/client get by with just TLS_RSA_WITH_AES_128_CBC_SHA?
tls client vs server (2)
I'm updating an embedded TLS 1.0 implementation to TLS 1.2 (devices with 1MB of code space or less, and no OS). At this point, I have AES-128 and AES-256 CBC ciphers working with SHA-1 and SHA-256 digests for a minimal implementation. The library cannot negotiate an SSLv2, SSLv3, TLS 1.0 or TLS 1.1 connection.
I felt this would be sufficient, given that RFC 5246 states, "TLS_RSA_WITH_AES_128_CBC_SHA is now the mandatory to implement cipher suite."
Yet as I read various postings on security blogs, I'm seeing recommendations that would have users disable that suite, and (for example) only allow the ECDHE_RSA or DHE_RSA variants.
So my question is whether devices using our library will interoperate with modern web browsers (as a server) and modern https/smtps/pop servers (as a client). Are there TLS 1.2 clients/servers that fail to negotiate a TLS_RSA_WITH_AES_128_CBC_SHA connection?
"So my question is whether devices using our library will interoperate with modern web browsers (as a server) and modern https/smtps/pop servers (as a client). Are there TLS 1.2 clients/servers that fail to negotiate a TLS_RSA_WITH_AES_128_CBC_SHA connection?"
Yes there are plenty implementations that fail.
- Clients that still send a SSL2.0 Client Hello
- Clients/Servers that only support PFS cipher suite
- Servers that still not support TLS 1.2
- Servers that no longer support TLS 1.2 - since those only support TLS 1.3
My recommendation is:
- also support TLS 1.3 (not that hard to implement, I did it)
- also support DHE
Or use a tool/site like https://www.ssllabs.com/ssltest/index.html and test the compatibility/security of your server until it's sufficient for you.
I am not sure there are currently many servers supporting TLS that would fail negotiating
TLSv1.2 as it is THE mandatory cipher suite for
However there are things to keep in mind:
TLS_RSA_WITH_3DES_EDE_CBC_SHAis mandatory for
TLSv1.1but due to security reasons it is no longer supported by every server,
- Mozilla recommends (and it is not the only one) to favor
- Perfect Forward Secrecy (PFS), allowed by DHE or ECDHE is now a must-have feature.
So if I can provide you with 4 cipher suites (the same number than you have), I would say these ones from the strongest to the weakest:
I would say that these 4 cipher suites bring enough security and compatibility with
Now the question of supporting only
TLSv1.2 is another question, but if you have enough space, I recommend you to add
TLSv1.0 too (
TLSv1.1 does not provide extra compatibility).
PS: The reason why
AES128 is favored instead of
AES256 is that some people think the extra security added by
AES256 is (for now) worthless and that
AES128 seems to be more resistant to timing attacks.