Skip to content

Commit 0ff944b

Browse files
Merge branch 'release/4.4.23'
2 parents 45ed6f9 + e238c93 commit 0ff944b

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

docs/release-notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Release Notes
55
.. toctree::
66
:maxdepth: 2
77

8+
release-notes/version-4.4.23
89
release-notes/version-4.4.22
910
release-notes/version-4.4.21
1011
release-notes/version-4.4.20

docs/release-notes/version-4.4.23.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
==============
2+
Version 4.4.23
3+
==============
4+
5+
Version 4.4.23 of mod_wsgi can be obtained from:
6+
7+
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.4.23
8+
9+
For details on the availability of Windows binaries see:
10+
11+
https://github.com/GrahamDumpleton/mod_wsgi/tree/master/win32
12+
13+
New Features
14+
------------
15+
16+
1. Added the ``--ssl-certificate-chain-file`` option to
17+
``mod_wsgi-express``, for specifying the path to a file containing the
18+
certificates of Certification Authorities (CA) which form the certificate
19+
chain of the server certificate. This is equivalent to having used the
20+
Apache ``SSLCertificateChainFile`` directive.

src/server/__init__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,9 @@ def find_mimetypes():
570570
SSLCACertificateFile %(ssl_ca_certificate_file)s
571571
SSLVerifyClient none
572572
</IfDefine>
573+
<IfDefine MOD_WSGI_CERTIFICATE_CHAIN>
574+
SSLCertificateChainFile %(ssl_certificate_chain_file)s
575+
</IfDefine>
573576
</VirtualHost>
574577
<VirtualHost *:%(https_port)s>
575578
ServerName %(server_name)s
@@ -583,6 +586,9 @@ def find_mimetypes():
583586
SSLCACertificateFile %(ssl_ca_certificate_file)s
584587
SSLVerifyClient none
585588
</IfDefine>
589+
<IfDefine MOD_WSGI_CERTIFICATE_CHAIN>
590+
SSLCertificateChainFile %(ssl_certificate_chain_file)s
591+
</IfDefine>
586592
<IfDefine MOD_WSGI_HTTPS_ONLY>
587593
<IfDefine MOD_WSGI_HSTS_POLICY>
588594
Header set Strict-Transport-Security %(hsts_policy)s
@@ -603,6 +609,9 @@ def find_mimetypes():
603609
SSLCACertificateFile %(ssl_ca_certificate_file)s
604610
SSLVerifyClient none
605611
</IfDefine>
612+
<IfDefine MOD_WSGI_CERTIFICATE_CHAIN>
613+
SSLCertificateChainFile %(ssl_certificate_chain_file)s
614+
</IfDefine>
606615
</VirtualHost>
607616
</IfDefine>
608617
</IfDefine>
@@ -1819,6 +1828,11 @@ def check_percentage(option, opt_str, value, parser):
18191828
'whole site will be disabled and verification will only be '
18201829
'required for the specified sub URL.'),
18211830

1831+
optparse.make_option('--ssl-certificate-chain-file', default=None,
1832+
metavar='FILE-PATH', help='Specify the path to a file '
1833+
'containing the certificates of Certification Authorities (CA) '
1834+
'which form the certificate chain of the server certificate.'),
1835+
18221836
optparse.make_option('--ssl-environment', action='store_true',
18231837
default=False, help='Flag indicating whether the standard set '
18241838
'of SSL related variables are passed in the per request '
@@ -2477,6 +2491,10 @@ def _cmd_setup_server(command, args, options):
24772491
options['ssl_ca_certificate_file'] = os.path.abspath(
24782492
options['ssl_ca_certificate_file'])
24792493

2494+
if options['ssl_certificate_chain_file']:
2495+
options['ssl_certificate_chain_file'] = os.path.abspath(
2496+
options['ssl_certificate_chain_file'])
2497+
24802498
if options['entry_point']:
24812499
args = [options['entry_point']]
24822500

@@ -2939,6 +2957,8 @@ def _cmd_setup_server(command, args, options):
29392957
options['httpd_arguments_list'].append('-DMOD_WSGI_WITH_HTTPS')
29402958
if options['ssl_ca_certificate_file']:
29412959
options['httpd_arguments_list'].append('-DMOD_WSGI_VERIFY_CLIENT')
2960+
if options['ssl_certificate_chain_file']:
2961+
options['httpd_arguments_list'].append('-DMOD_WSGI_CERTIFICATE_CHAIN')
29422962

29432963
if options['ssl_environment']:
29442964
options['httpd_arguments_list'].append('-DMOD_WSGI_SSL_ENVIRONMENT')

src/server/wsgi_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
#define MOD_WSGI_MAJORVERSION_NUMBER 4
2727
#define MOD_WSGI_MINORVERSION_NUMBER 4
28-
#define MOD_WSGI_MICROVERSION_NUMBER 22
29-
#define MOD_WSGI_VERSION_STRING "4.4.22"
28+
#define MOD_WSGI_MICROVERSION_NUMBER 23
29+
#define MOD_WSGI_VERSION_STRING "4.4.23"
3030

3131
/* ------------------------------------------------------------------------- */
3232

0 commit comments

Comments
 (0)