diff --git a/wall_smash/cert.pfx b/wall_smash/cert.pfx old mode 100755 new mode 100644 index c0148d6..3b8e72b Binary files a/wall_smash/cert.pfx and b/wall_smash/cert.pfx differ diff --git a/wall_smash/pfxTest.js b/wall_smash/pfxTest.js new file mode 100644 index 0000000..d98b67d --- /dev/null +++ b/wall_smash/pfxTest.js @@ -0,0 +1,16 @@ + +const https = require('https'); +const fs = require('fs'); +const port = 8000; + +console.log("Listening on " + port); + +const options = { + pfx: fs.readFileSync('cert.pfx') +}; + +https.createServer(options, (req, res) => { + console.log("Request from " + (req.socket ? req.socket.remoteAddress : "NULL")); + res.writeHead(200); + res.end('hello world\n'); +}).listen(port);