Is this the appropriate way to set up SSL on the latest version of Node.js
Express?
var ssl_key = fs.readFileSync('./production/ssl/dev/domain.key').toString();
var ssl_cert =
fs.readFileSync('./production/ssl/dev/domain.com.crt').toString();
var ssl_ca =
fs.readFileSync('./production/ssl/dev/gd_bundle.crt').toString();
var options = {
key: ssl_key,
cert: ssl_cert,
ca: ssl_ca
}
var app = express(options);
app.get('/', function(req,res){
res.send('hello');
});
app.listen(443);
I generated my CSR correctly, pasted it into Godaddy, and got the
certificates back.
When I go to my website, I got: SSL Connection Error.
Unable to make a secure connection to the server. This may be a problem
with the server, or it may be requiring a client authentication
certificate that you don't have.
Error code: ERR_SSL_PROTOCOL_ERROR
Does it take 24 hours wait or something? Or is my code incorrect? I set it
up 30 minutes ago...
No comments:
Post a Comment