comparison uwsgi_ssl.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 5ac6efbe5552
children
comparison
equal deleted inserted replaced
1922:97ffd1cf5e21 1923:1b9f21836f57
96 # uwsgi has no python support, maybe plugin load is necessary 96 # uwsgi has no python support, maybe plugin load is necessary
97 push @uwsgiopts, '--plugin', 'python'; 97 push @uwsgiopts, '--plugin', 'python';
98 push @uwsgiopts, '--plugin', 'python3'; 98 push @uwsgiopts, '--plugin', 'python3';
99 } 99 }
100 100
101 if ($uwsgihelp =~ /--ssl-enable-tlsv1/) {
102 # uwsgi disables TLSv1 by default since 2.0.17.1
103 push @uwsgiopts, '--ssl-enable-tlsv1';
104 }
105
101 open OLDERR, ">&", \*STDERR; close STDERR; 106 open OLDERR, ">&", \*STDERR; close STDERR;
102 $t->run_daemon('uwsgi', @uwsgiopts, 107 $t->run_daemon('uwsgi', @uwsgiopts,
103 '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key", 108 '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key",
104 '--wsgi-file', $d . '/uwsgi_test_app.py', 109 '--wsgi-file', $d . '/uwsgi_test_app.py',
105 '--logto', $d . '/uwsgi_log'); 110 '--logto', $d . '/uwsgi_log');