comparison uwsgi_ssl_verify.t @ 1923:1b9f21836f57

Tests: enabled TLSv1 in uwsgi SSL tests. In uWSGI starting with 2.0.17.1, TLSv1 is disabled by default. It is now re-enabled to make it possible to run tests with OpenSSL before 1.0.1, where TLSv1.1 and TLSv1.2 support was introduced.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 12 Jul 2023 02:40:49 +0300
parents 31ea330ac360
children
comparison
equal deleted inserted replaced
1922:97ffd1cf5e21 1923:1b9f21836f57
142 # uwsgi has no python support, maybe plugin load is necessary 142 # uwsgi has no python support, maybe plugin load is necessary
143 push @uwsgiopts, '--plugin', 'python'; 143 push @uwsgiopts, '--plugin', 'python';
144 push @uwsgiopts, '--plugin', 'python3'; 144 push @uwsgiopts, '--plugin', 'python3';
145 } 145 }
146 146
147 if ($uwsgihelp =~ /--ssl-enable-tlsv1/) {
148 # uwsgi disables TLSv1 by default since 2.0.17.1
149 push @uwsgiopts, '--ssl-enable-tlsv1';
150 }
151
147 open OLDERR, ">&", \*STDERR; close STDERR; 152 open OLDERR, ">&", \*STDERR; close STDERR;
148 $t->run_daemon('uwsgi', @uwsgiopts, 153 $t->run_daemon('uwsgi', @uwsgiopts,
149 '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt1,$key1", 154 '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt1,$key1",
150 '--wsgi-file', $d . '/uwsgi_test_app.py', 155 '--wsgi-file', $d . '/uwsgi_test_app.py',
151 '--logto', $d . '/uwsgi_log'); 156 '--logto', $d . '/uwsgi_log');