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