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