(req, res)
| 16 | // the CA certificate first (which needs an interactive GUI approval, e.g. TouchID): |
| 17 | // see the README.md in this folder for instructions on how to do this. |
| 18 | const handleRequest = (req, res) => { |
| 19 | const path = req.url; |
| 20 | switch (path) { |
| 21 | case '/hello-world': |
| 22 | res.writeHead(200); |
| 23 | res.end('hello world\n'); |
| 24 | break; |
| 25 | default: |
| 26 | assert.fail(`Unexpected path: ${path}`); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | describe('use-system-ca', function() { |
| 31 |