88 command : ../clace app create --auth cert_test2 ./testapp /certs_test2
99 certs030 : # # test auth1 with key a
1010 command : curl -k --cert certs/testcerts1/client.a.crt --key certs/testcerts1/client.a.key https://localhost:25223/certs_test1
11+ stdout : Test app body
1112 certs040 : # # test auth1 with key b
1213 command : curl -k --cert certs/testcerts1/client.b.crt --key certs/testcerts1/client.b.key https://localhost:25223/certs_test1
14+ stdout : Test app body
1315 certs050 : # # test auth2 with key a
1416 command : curl -k --cert certs/testcerts2/client.a.crt --key certs/testcerts2/client.a.key https://localhost:25223/certs_test2
17+ stdout : Test app body
1518 certs060 : # # test auth2 with key b
1619 command : curl -k --cert certs/testcerts2/client.b.crt --key certs/testcerts2/client.b.key https://localhost:25223/certs_test2
20+ stdout : Test app body
1721 certs070 : # # test auth1 with test2 key a, fails
1822 command : curl -k --cert certs/testcerts2/client.a.crt --key certs/testcerts2/client.a.key https://localhost:25223/certs_test1
1923 stdout : client certificate verification failed
@@ -30,14 +34,18 @@ tests:
3034 command : ../clace app update-settings auth cert_test2 /certs_test1
3135 certs120 : # # test auth1 with auth1 key a, fails now
3236 command : curl -k --cert certs/testcerts1/client.a.crt --key certs/testcerts1/client.a.key https://localhost:25223/certs_test1
37+ stdout : client certificate verification failed
3338 certs130 : # # test auth1 with auth2 key a, works
3439 command : curl -k --cert certs/testcerts2/client.a.crt --key certs/testcerts2/client.a.key https://localhost:25223/certs_test1
40+ stdout : Test app body
3541 certs140 : # # update app1 to no auth
3642 command : ../clace app update-settings auth none /certs_test1
3743 certs150 : # # no key works
38- command : curl -k https://localhost:25223/certs_test2
44+ command : curl -k https://localhost:25223/certs_test1
45+ stdout : Test app body
3946 certs160 : # # http works
40- command : curl http://localhost:25222/certs_test2
47+ command : curl http://localhost:25222/certs_test1
48+ stdout : Test app body
4149 certs170 : # # invalid conf fails
4250 command : ../clace app update-settings auth cert_invalid /certs_test1
4351 exit-code : 1
0 commit comments