From bb46b63e33e1261c9dc543a46cdcd3c440ff4709 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 8 Dec 2010 11:55:04 -0800 Subject: [PATCH] test-tls-server-verify: add ca2 test case --- test/simple/test-tls-server-verify.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/simple/test-tls-server-verify.js b/test/simple/test-tls-server-verify.js index 50915d0504..624726016f 100644 --- a/test/simple/test-tls-server-verify.js +++ b/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 } + ] + }, ];