@@ -107,8 +107,8 @@ test('only https', function (t) {
107
107
https : {
108
108
port : 3456 ,
109
109
root : path . join ( __dirname , 'fixtures' ) ,
110
- cert : 'agent2-cert .pem' ,
111
- key : 'agent2-key .pem'
110
+ key : 'example-org-key .pem' ,
111
+ cert : 'example-org-cert .pem'
112
112
} ,
113
113
handler : fend
114
114
} , function ( err , servers ) {
@@ -128,8 +128,8 @@ test('only https', function (t) {
128
128
timeout : time ,
129
129
port : 3456 ,
130
130
root : path . join ( __dirname , 'fixtures' ) ,
131
- cert : 'agent2-cert .pem' ,
132
- key : 'agent2-key .pem'
131
+ key : 'example-org-key .pem' ,
132
+ cert : 'example-org-cert .pem'
133
133
} ,
134
134
handler : fend
135
135
} , function ( err , servers ) {
@@ -148,8 +148,8 @@ test('absolute cert path resolution', function (t) {
148
148
https : {
149
149
port : 3456 ,
150
150
root : '/' ,
151
- cert : path . resolve ( __dirname , 'fixtures' , 'agent2 -cert.pem' ) ,
152
- key : path . resolve ( __dirname , 'fixtures' , 'agent2 -key.pem' )
151
+ cert : path . resolve ( __dirname , 'fixtures' , 'example-org -cert.pem' ) ,
152
+ key : path . resolve ( __dirname , 'fixtures' , 'example-org -key.pem' )
153
153
} ,
154
154
handler : fend
155
155
} , function ( err , servers ) {
@@ -168,8 +168,8 @@ test('http && https', function (t) {
168
168
https : {
169
169
port : 3456 ,
170
170
root : path . join ( __dirname , 'fixtures' ) ,
171
- cert : 'agent2-cert .pem' ,
172
- key : 'agent2-key .pem'
171
+ key : 'example-org-key .pem' ,
172
+ cert : 'example-org-cert .pem'
173
173
} ,
174
174
handler : fend
175
175
} , function ( err , servers ) {
@@ -189,8 +189,8 @@ test('provides useful debug information', function (t) {
189
189
https : {
190
190
port : 443 ,
191
191
root : path . join ( __dirname , 'fixtures' ) ,
192
- cert : 'agent2-cert .pem' ,
193
- key : 'agent2-key .pem'
192
+ key : 'example-org-key .pem' ,
193
+ cert : 'example-org-cert .pem'
194
194
} ,
195
195
handler : fend
196
196
} , function ( err , servers ) {
@@ -218,8 +218,8 @@ test('http && https with different handlers', function (t) {
218
218
} ,
219
219
port : 3456 ,
220
220
root : path . join ( __dirname , 'fixtures' ) ,
221
- cert : 'agent2-cert .pem' ,
222
- key : 'agent2-key .pem'
221
+ key : 'example-org-key .pem' ,
222
+ cert : 'example-org-cert .pem'
223
223
} ,
224
224
} , function ( err , servers ) {
225
225
t . error ( err ) ;
@@ -272,8 +272,8 @@ test('supports cert contents instead of cert paths', function (t) {
272
272
https : {
273
273
port : 3456 ,
274
274
root : root ,
275
- cert : fs . readFileSync ( path . resolve ( root , 'agent2 -cert.pem' ) ) ,
276
- key : fs . readFileSync ( path . resolve ( root , 'agent2 -key.pem' ) )
275
+ cert : fs . readFileSync ( path . resolve ( root , 'example-org -cert.pem' ) ) ,
276
+ key : fs . readFileSync ( path . resolve ( root , 'example-org -key.pem' ) )
277
277
} ,
278
278
handler : fend
279
279
} , function ( err , servers ) {
@@ -292,8 +292,8 @@ test('supports cert array instead of strings', function (t) {
292
292
https : {
293
293
port : 3456 ,
294
294
root : root ,
295
- cert : [ fs . readFileSync ( path . resolve ( root , 'agent2-cert .pem') ) ] ,
296
- key : fs . readFileSync ( path . resolve ( root , 'agent2-key .pem') )
295
+ key : 'example-org-key .pem',
296
+ cert : 'example-org-cert .pem'
297
297
} ,
298
298
handler : fend
299
299
} , function ( err , servers ) {
@@ -337,10 +337,10 @@ test('supports requestCert https option', function (t) {
337
337
createServers ( {
338
338
log : console . log ,
339
339
https : {
340
- port : 3456 ,
341
- root : path . join ( __dirname , 'fixtures' ) ,
342
- cert : 'agent2-cert .pem',
343
- key : 'agent2-key .pem',
340
+ port : 3456 ,
341
+ root : path . join ( __dirname , 'fixtures' ) ,
342
+ key : 'example-org-key .pem',
343
+ cert : 'example-org-cert .pem',
344
344
requestCert : true
345
345
} ,
346
346
handler : fend
0 commit comments