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

OpenSSL: deprecate Mozilla's TLS Server recommendation #14657

Conversation

ysbaddaden
Copy link
Contributor

We shouldn't hardcode a list of ciphers. It should always be a runtime configurable list. Furthermore, restricting the ciphers is only part of the security recommendations: TLS methods, curves and so on must also be considered.

This patch deprecates the constants and makes the related methods as NOOP since they didn't work as expected on OpenSSL 1.1 and later, as they only changed the cipher suites for TLS v1.3 (identical to default, at least for OpenSSL 1.1.1f) and didn't change the ciphers list for TLS v1.2 and below (oops).

follow up to #14655 and #14656

src/openssl/ssl/context.cr Outdated Show resolved Hide resolved
src/openssl/ssl/context.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:networking labels Jun 5, 2024
We shouldn't hardcode a list of ciphers. It should always be a
configurable list of ciphers. Furthermore, restricting the ciphers is
only part of the security recommendations: TLS methods, curves and so on
must also be considered.

This patch deprecates the constants, and makes the related methods as
NOOP since they didn't work as expected on OpenSSL 1.1 and later, as
they only changes the cipher suites for TLS v1.3 (identical to default)
and didn't change the ciphers list for TLS v1.2 and below (oops).
@ysbaddaden ysbaddaden force-pushed the fix/openssl-deprecate-mozilla-recommendation branch from e34f693 to 76a1fcd Compare June 6, 2024 15:17
src/openssl/ssl/context.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota added this to the 1.13.0 milestone Jun 7, 2024
@straight-shoota straight-shoota merged commit 835b0c7 into crystal-lang:master Jun 9, 2024
61 checks passed
@ysbaddaden ysbaddaden deleted the fix/openssl-deprecate-mozilla-recommendation branch June 10, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. security topic:stdlib:networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants