added flappy cert

This commit is contained in:
Sewmina 2025-07-06 02:28:13 +05:30
parent 6eed20729f
commit e62ca71c87
6 changed files with 40 additions and 0 deletions

4
dev/flappy/cert.json Normal file
View File

@ -0,0 +1,4 @@
{
"path":"./cert.pfx",
"password": ""
}

BIN
dev/flappy/cert.pfx Normal file

Binary file not shown.

16
dev/flappy/pfxTest.js Normal file
View 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
View File

@ -0,0 +1,4 @@
{
"path":"./cert.pfx",
"password": ""
}

BIN
flappy/cert.pfx Normal file

Binary file not shown.

16
flappy/pfxTest.js Normal file
View 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);