Skip to content

[2.4.x] Merge changes to mod_ssl - #1091

Merged
notroj merged 3 commits into
apache:2.4.xfrom
notroj:2.4.x-mod_ssl-fixes
Nov 25, 2026
Merged

notroj merged 3 commits into
apache:2.4.xfrom
notroj:2.4.x-mod_ssl-fixes

Conversation

@notroj

@notroj notroj commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Merge r1924955, r1938504 from trunk:

mod_ssl: Check the SSLProtocol directive when loading the configuration

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 caught:

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

Submitted by: Michael Kaufmann
Github: closes #523

  • modules/ssl/ssl_engine_kernel.c (ssl_hook_Access_modern): Don't add
    SSL_VERIFY_CLIENT_ONCE to the verify mode used for Post-Handshake
    Authentication. OpenSSL refuses the request with SSL_R_INVALID_CONFIG
    when that flag is set and a certificate has already been received, so
    a per-directory SSLVerifyClient failed with 403 on a TLSv1.3 connection
    to a virtual host which had itself asked for a certificate.

Submitted by: Michael Kaufmann
PR: 63096
GitHub: PR #770

The last commit is test-only: it marks the existing test for r1938504 (test_ssl_003_05) as backported in 2.4.72, and needs the same change on trunk.

🤖 Generated with Claude Code

notroj and others added 3 commits November 25, 2026 20:57
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 caught:
* SSLProtocol "-TLSv1"
* SSLProtocol "-all"
* SSLProtocol "TLSv1.2 -TLSv1.2"

Submitted by: Michael Kaufmann <mail michael-kaufmann.ch>
Github: closes apache#523

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924955 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit e6cfbfa)
  SSL_VERIFY_CLIENT_ONCE to the verify mode used for Post-Handshake
  Authentication.  OpenSSL refuses the request with SSL_R_INVALID_CONFIG
  when that flag is set and a certificate has already been received, so
  a per-directory SSLVerifyClient failed with 403 on a TLSv1.3 connection
  to a virtual host which had itself asked for a certificate.

Submitted by: Michael Kaufmann <mail michael-kaufmann.ch>
PR: 63096
GitHub: PR apache#770

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1938504 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 1a0c1b2)
  (TestVerifyClientPerDir.test_ssl_003_05): Mark as backported in
  2.4.72.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@notroj
notroj merged commit fcd3dc3 into apache:2.4.x Nov 25, 2026
36 checks passed
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