@@ -170,13 +170,9 @@ function allListening() {
170170
171171 // server1: host 'agent1', signed by ca1
172172 makeReq ( '/inv1' , port1 , 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' ) ;
173- makeReq ( '/inv1-ca1' , port1 ,
174- 'Hostname/IP doesn\'t match certificate\'s altnames: ' +
175- '"Host: localhost. is not cert\'s CN: agent1"' ,
173+ makeReq ( '/inv1-ca1' , port1 , 'ERR_TLS_CERT_ALTNAME_INVALID' ,
176174 null , ca1 ) ;
177- makeReq ( '/inv1-ca1ca2' , port1 ,
178- 'Hostname/IP doesn\'t match certificate\'s altnames: ' +
179- '"Host: localhost. is not cert\'s CN: agent1"' ,
175+ makeReq ( '/inv1-ca1ca2' , port1 , 'ERR_TLS_CERT_ALTNAME_INVALID' ,
180176 null , [ ca1 , ca2 ] ) ;
181177 makeReq ( '/val1-ca1' , port1 , null , 'agent1' , ca1 ) ;
182178 makeReq ( '/val1-ca1ca2' , port1 , null , 'agent1' , [ ca1 , ca2 ] ) ;
@@ -193,13 +189,8 @@ function allListening() {
193189
194190 // server3: host 'agent3', signed by ca2
195191 makeReq ( '/inv3' , port3 , 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' ) ;
196- makeReq ( '/inv3-ca2' , port3 ,
197- 'Hostname/IP doesn\'t match certificate\'s altnames: ' +
198- '"Host: localhost. is not cert\'s CN: agent3"' ,
199- null , ca2 ) ;
200- makeReq ( '/inv3-ca1ca2' , port3 ,
201- 'Hostname/IP doesn\'t match certificate\'s altnames: ' +
202- '"Host: localhost. is not cert\'s CN: agent3"' ,
192+ makeReq ( '/inv3-ca2' , port3 , 'ERR_TLS_CERT_ALTNAME_INVALID' , null , ca2 ) ;
193+ makeReq ( '/inv3-ca1ca2' , port3 , 'ERR_TLS_CERT_ALTNAME_INVALID' ,
203194 null , [ ca1 , ca2 ] ) ;
204195 makeReq ( '/val3-ca2' , port3 , null , 'agent3' , ca2 ) ;
205196 makeReq ( '/val3-ca1ca2' , port3 , null , 'agent3' , [ ca1 , ca2 ] ) ;
0 commit comments