Tuesday 23 May 2017

Where to host SSL certs on ec2 node.js server

I am a newbie to dev ops and EC2. I am running a nod server on AWS EC2, but I need to make it use https. I have all the material to create the cert and add it to my node.js server.

This may seem like a silly question, but where do I host the cert? Can it be hosted on S3? I don't use Elastic Cloud or CloudFront so need to manage it myself.

var key = fs.readFileSync(path.resolve(__dirname, '../cert/key.pem'));
var cert = fs.readFileSync(path.resolve(__dirname, '../cert/cert.pem'));
var ca = fs.readFileSync(path.resolve(__dirname, '../cert/cai.pem'));



via jdog

No comments:

Post a Comment