Mercurial > hg > nginx-tests
comparison ssl_verify_client.t @ 974:882267679006
Tests: simplified parallel modifications in tests.
Mail tests were simplified in c227348453db.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 12 Jul 2016 17:39:03 +0300 |
parents | e9064d691790 |
children | 43eedbfea090 |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
48 ssl_verify_client optional_no_ca; | 48 ssl_verify_client optional_no_ca; |
49 | 49 |
50 add_header X-Verify $ssl_client_verify; | 50 add_header X-Verify $ssl_client_verify; |
51 | 51 |
52 server { | 52 server { |
53 listen 127.0.0.1:%%PORT_0%% ssl; | 53 listen 127.0.0.1:8080 ssl; |
54 server_name localhost; | 54 server_name localhost; |
55 | 55 |
56 ssl_client_certificate client.crt; | 56 ssl_client_certificate client.crt; |
57 | 57 |
58 location / { } | 58 location / { } |
59 } | 59 } |
60 | 60 |
61 server { | 61 server { |
62 listen 127.0.0.1:%%PORT_0%% ssl; | 62 listen 127.0.0.1:8080 ssl; |
63 server_name example.com; | 63 server_name example.com; |
64 | 64 |
65 location / { } | 65 location / { } |
66 } | 66 } |
67 } | 67 } |
117 local $SIG{PIPE} = sub { die "sigpipe\n" }; | 117 local $SIG{PIPE} = sub { die "sigpipe\n" }; |
118 alarm(2); | 118 alarm(2); |
119 $s = IO::Socket::SSL->new( | 119 $s = IO::Socket::SSL->new( |
120 Proto => 'tcp', | 120 Proto => 'tcp', |
121 PeerAddr => '127.0.0.1', | 121 PeerAddr => '127.0.0.1', |
122 PeerPort => port(0), | 122 PeerPort => port(8080), |
123 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), | 123 SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE(), |
124 SSL_hostname => $sni, | 124 SSL_hostname => $sni, |
125 SSL_cert_file => "$d/client.crt", | 125 SSL_cert_file => "$d/client.crt", |
126 SSL_key_file => "$d/client.key", | 126 SSL_key_file => "$d/client.key", |
127 SSL_error_trap => sub { die $_[1] } | 127 SSL_error_trap => sub { die $_[1] } |