File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ nodeOnly(() => {
29
29
await expect ( fetch ( 'https://localhost:4430' ) ) . to . have . responseText ( 'signed response!' ) ;
30
30
} ) ;
31
31
32
- describe ( "constrained CA" , ( ) => {
32
+ describe ( "with a constrained CA" , ( ) => {
33
33
let constrainedCA : CA ;
34
34
let constrainedCaCert : string ;
35
35
@@ -78,7 +78,7 @@ nodeOnly(() => {
78
78
reject ( err ) ;
79
79
} ) ;
80
80
req . end ( ) ;
81
- } ) ;
81
+ } ) ;
82
82
} ) ;
83
83
84
84
it ( "can not generate a valid certificate for a domain not included in a constrained CA" , async ( ) => {
@@ -251,10 +251,14 @@ nodeOnly(() => {
251
251
expect ( errors . join ( '\n' ) ) . to . equal ( '' ) ;
252
252
} ) ;
253
253
254
- it ( "should generate a CA cert constrained to a domain that pass lintcert checks" , async function ( ) {
254
+ it ( "should generate a custom CA cert constrained to a domain that pass lintcert checks" , async function ( ) {
255
255
this . retries ( 3 ) ; // Remote server can be unreliable
256
256
257
257
const caCertificate = await generateCACertificate ( {
258
+ subject : {
259
+ commonName : 'Custom CA' ,
260
+ serialNumber : '1234'
261
+ } ,
258
262
nameConstraints : {
259
263
permitted : [ 'example.com' ]
260
264
}
You can’t perform that action at this time.
0 commit comments