changeset 1572:f5a3b70c0f2f

Tests: fixed ssl_verify_client.t with LibreSSL. LibreSSL started validating SNI hostnames since 3.2.0: https://github.com/openbsd/src/commit/19d7242.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 01 Jun 2020 14:36:44 +0300
parents 1b4ceab9cb1c
children d7e83ce613c2
files ssl_verify_client.t
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ssl_verify_client.t
+++ b/ssl_verify_client.t
@@ -95,7 +95,7 @@ http {
 
     server {
         listen       127.0.0.1:8081 ssl;
-        server_name  optional_no_ca;
+        server_name  optional.no.ca;
 
         ssl_certificate_key 1.example.com.key;
         ssl_certificate 1.example.com.crt;
@@ -106,7 +106,7 @@ http {
 
     server {
         listen       127.0.0.1:8081;
-        server_name  no_context;
+        server_name  no.context;
 
         ssl_verify_client on;
     }
@@ -142,10 +142,10 @@ sleep 1 if $^O eq 'MSWin32';
 
 like(http_get('/t'), qr/x:x/, 'plain connection');
 like(get('on'), qr/400 Bad Request/, 'no cert');
-like(get('no_context'), qr/400 Bad Request/, 'no server cert');
+like(get('no.context'), qr/400 Bad Request/, 'no server cert');
 like(get('optional'), qr/NONE:x/, 'no optional cert');
 like(get('optional', '1.example.com'), qr/400 Bad/, 'bad optional cert');
-like(get('optional_no_ca', '1.example.com'), qr/FAILED.*BEGIN/,
+like(get('optional.no.ca', '1.example.com'), qr/FAILED.*BEGIN/,
 	'bad optional_no_ca cert');
 
 like(get('localhost', '2.example.com'), qr/SUCCESS.*BEGIN/, 'good cert');