diff --git a/t/163-ssl-two-verification.t b/t/163-ssl-two-verification.t index f2440a72..2ff3eeb1 100644 --- a/t/163-ssl-two-verification.t +++ b/t/163-ssl-two-verification.t @@ -11,7 +11,7 @@ my $openssl_version = eval { `$NginxBinary -V 2>&1` }; if ($openssl_version =~ m/built with OpenSSL (0\S*|1\.0\S*|1\.1\.0\S*)/) { plan(skip_all => "too old OpenSSL, need 1.1.1, was $1"); } else { - plan tests => repeat_each() * (blocks() * 6); + plan tests => repeat_each() * (blocks() * 7); } $ENV{TEST_NGINX_HTML_DIR} ||= html_dir(); @@ -40,6 +40,9 @@ __DATA__ ssl_verify_client on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + log_by_lua_block { + ngx.log(ngx.INFO, "ssl_client_s_dn: ", ngx.var.ssl_client_s_dn) + } return 'it works!\n'; } --- stream_server_config @@ -94,6 +97,7 @@ close: 1 nil --- error_log lua ssl server name: "test.com" +ssl_client_s_dn: emailAddress=agentzh@gmail.com,CN=test.com,OU=OpenResty,O=OpenResty,L=San Francisco,ST=California,C=US --- no_error_log [error]