Browse Source

test-tls-server-verify: add ca2 test case

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
bb46b63e33
  1. 11
      test/simple/test-tls-server-verify.js

11
test/simple/test-tls-server-verify.js

@ -43,6 +43,17 @@ var testCases =
]
},
{ title: "Allow only authed connections with CA1 and CA2",
requestCert: true,
rejectUnauthorized: true,
CAs: ['ca1-cert', 'ca2-cert'],
clients:
[ { name: 'agent1', shouldReject: false, shouldAuth: true },
{ name: 'agent2', shouldReject: true },
{ name: 'agent3', shouldReject: false, shouldAuth: true },
{ name: 'nocert', shouldReject: true }
]
},
];

Loading…
Cancel
Save