comparison stream_proxy_ssl_certificate.t @ 1069:1b11a12be179

Tests: pass both issuer/subject variable formats where appropriate.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 21 Oct 2016 16:37:23 +0300
parents 90a0d85436c1
children 778eae8230e4
comparison
equal deleted inserted replaced
1068:d0ec761774a5 1069:1b11a12be179
145 qr/X-Verify: FAILED/ms, 'fail certificate'); 145 qr/X-Verify: FAILED/ms, 'fail certificate');
146 like(http_get('/', socket => getconn('127.0.0.1:' . port(8084))), 146 like(http_get('/', socket => getconn('127.0.0.1:' . port(8084))),
147 qr/X-Verify: SUCCESS/ms, 'with encrypted key'); 147 qr/X-Verify: SUCCESS/ms, 'with encrypted key');
148 148
149 like(http_get('/', socket => getconn('127.0.0.1:' . port(8082))), 149 like(http_get('/', socket => getconn('127.0.0.1:' . port(8082))),
150 qr!X-Name: /CN=1.example!, 'valid certificate'); 150 qr!X-Name: /?CN=1.example!, 'valid certificate');
151 unlike(http_get('/', socket => getconn('127.0.0.1:' . port(8083))), 151 unlike(http_get('/', socket => getconn('127.0.0.1:' . port(8083))),
152 qr!X-Name: /CN=1.example!, 'invalid certificate'); 152 qr!X-Name: /?CN=1.example!, 'invalid certificate');
153 153
154 ############################################################################### 154 ###############################################################################
155 155
156 sub getconn { 156 sub getconn {
157 my $peer = shift; 157 my $peer = shift;