added flappy cert
This commit is contained in:
parent
6eed20729f
commit
e62ca71c87
4
dev/flappy/cert.json
Normal file
4
dev/flappy/cert.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"path":"./cert.pfx",
|
||||
"password": ""
|
||||
}
|
||||
BIN
dev/flappy/cert.pfx
Normal file
BIN
dev/flappy/cert.pfx
Normal file
Binary file not shown.
16
dev/flappy/pfxTest.js
Normal file
16
dev/flappy/pfxTest.js
Normal file
|
|
@ -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);
|
||||
4
flappy/cert.json
Normal file
4
flappy/cert.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"path":"./cert.pfx",
|
||||
"password": ""
|
||||
}
|
||||
BIN
flappy/cert.pfx
Normal file
BIN
flappy/cert.pfx
Normal file
Binary file not shown.
16
flappy/pfxTest.js
Normal file
16
flappy/pfxTest.js
Normal file
|
|
@ -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);
|
||||
Loading…
Reference in New Issue
Block a user