2019-07-18 08:48:15 +00:00
|
|
|
{
|
|
|
|
"comment": "Tests for CACert/CAKey",
|
|
|
|
"configs": {
|
|
|
|
"1": {
|
|
|
|
"proto": {
|
|
|
|
"proto": "ssl"
|
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"ip": "127.0.0.1",
|
|
|
|
"port": "8458"
|
|
|
|
},
|
|
|
|
"server": {
|
|
|
|
"ip": "127.0.0.1",
|
|
|
|
"port": "9458",
|
|
|
|
"crt": "server2.crt",
|
|
|
|
"key": "server2.key",
|
|
|
|
"comment": "We need a crt/key pair different from the other tests to avoid cache HIT"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tests": {
|
|
|
|
"1": {
|
|
|
|
"comment": "Forges certs using the proxyspec CA cert/key pair",
|
|
|
|
"states": {
|
|
|
|
"1": {
|
|
|
|
"testend": "client",
|
|
|
|
"cmd": "send",
|
2020-04-16 12:33:50 +00:00
|
|
|
"payload": "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n",
|
2019-07-18 08:48:15 +00:00
|
|
|
"assert": {
|
|
|
|
"peer_certificate": {
|
|
|
|
"==": [
|
|
|
|
"NZ, Wellington, Lower Hutt, ComixWallNZ, UTMFW, comixwallnz.org, sonertari@gmail.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"2": {
|
|
|
|
"testend": "server",
|
|
|
|
"cmd": "recv",
|
2020-04-16 12:33:50 +00:00
|
|
|
"payload": "GET / HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n"
|
2019-07-18 08:48:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|