Does anyone knows how to deploy an SSL certificate to my nodejitsu App?
I can see that I already have https enabled but i would like to buy a SSL Certificate now that I'm opening for business.
Does anyone knows how to deploy an SSL certificate to my nodejitsu App?
I can see that I already have https enabled but i would like to buy a SSL Certificate now that I'm opening for business.
To get an SSL certificate working with a custom domain on Nodejitsu, you can do the following:
The details of these steps will be slightly different depending on what you use to create your CSR and who your cert provider is. If you get stuck Nodejitsu support can help set you up.
Like this:
var https = require('https');
var fs = require('fs');
var options = {
key: fs.readFileSync('key.pem'),
cert: fs.readFileSync('cert.pem')
};
var a = https.createServer(options, function (req, res) {
res.writeHead(200);
res.end("hello world\n");
}).listen(8000);
Where cert.pem
should be the path to your certificate and key.pem
should be the path to its private key
http://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server
Drop us a line to [email protected] or visit us on IRC at #nodejitsu in Freenode (http://webchat.jit.su) and we will help you with the configuration of the custom ssl certificate.
© 2022 - 2024 — McMap. All rights reserved.