@@ -170,13 +170,9 @@ function allListening() {
170
170
171
171
// server1: host 'agent1', signed by ca1
172
172
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' ,
176
174
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' ,
180
176
null , [ ca1 , ca2 ] ) ;
181
177
makeReq ( '/val1-ca1' , port1 , null , 'agent1' , ca1 ) ;
182
178
makeReq ( '/val1-ca1ca2' , port1 , null , 'agent1' , [ ca1 , ca2 ] ) ;
@@ -193,13 +189,8 @@ function allListening() {
193
189
194
190
// server3: host 'agent3', signed by ca2
195
191
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' ,
203
194
null , [ ca1 , ca2 ] ) ;
204
195
makeReq ( '/val3-ca2' , port3 , null , 'agent3' , ca2 ) ;
205
196
makeReq ( '/val3-ca1ca2' , port3 , null , 'agent3' , [ ca1 , ca2 ] ) ;
0 commit comments