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

mod_ssl: Check the SSLProtocol directive when loading the configuration #523

Closed
wants to merge 1 commit into from

Conversation

mkauf
Copy link

@mkauf mkauf commented Mar 18, 2025

Previously, the SSLProtocol directive was checked at runtime. Apache quit if the directive contained an invalid combination of protocols, and logged the message "AH02231: No SSL protocols available [hint: SSLProtocol]".

With this change, most invalid SSLProtocol directives are detected when checking the configuration, e.g. with "httpd -t -f httpd.conf".

Examples of invalid protocol combinations that are catched:

  • SSLProtocol "-TLSv1"
  • SSLProtocol "-all"
  • SSLProtocol "TLSv1.2 -TLSv1.2"

Previously, the SSLProtocol directive was checked at runtime. Apache quit if
the directive contained an invalid combination of protocols, and logged the
message "AH02231: No SSL protocols available [hint: SSLProtocol]".

With this change, most invalid SSLProtocol directives are detected when
checking the configuration, e.g. with "httpd -t -f httpd.conf".

Examples of invalid protocol combinations that are catched:
* SSLProtocol "-TLSv1"
* SSLProtocol "-all"
* SSLProtocol "TLSv1.2 -TLSv1.2"
@notroj
Copy link
Collaborator

notroj commented Apr 9, 2025

Looks like this was merged from 2.4 and added the new check in the wrong function but it's a trivial fix.
6df6b1a#diff-14a3ac31e799b2734152995888041f2da912afcc74e66e774d926397db65711dR1486

Thanks for the PR!

@asfgit asfgit closed this in e6cfbfa Apr 9, 2025
@mkauf
Copy link
Author

mkauf commented Apr 9, 2025

@notroj You're right... thank you for fixing the commit and merging!

@mkauf mkauf deleted the check-sslprotocol branch April 9, 2025 08:39
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