How to create .pem files for https web server
I'm using the Express framework in Node.js to create a web server. I want the transport is based on SSL. The code to create the https web server is as below. var app = express.createServer({ key: fs.readFileSync('./conf/key.pem'), cert: fs.readFileSync('./conf/cert.pem') }); module.exports = app; Question: How to create the key.pem and cert.pem required by express? The two files you need are a PEM encoded SSL certificate and private key. PEM encoded certs and keys are Base64 encoded text with start/end delimiters that look like -----BEGIN RSA PRIVATE KEY----- or similar. To create an SSL