How and where should I add my SSL certificate

Issue

Good day all, am wondering if I should add my SSL certificate in my node.js server(app.js) or do I add it once I deploy it to heroku using the heroku cli? Or do I add the certificate in both places?

Solution

When deploying on heroku, regardless of tier, you automatically get a SSL certificate on your domain, no need to add SSL to your nodejs app.

More info here.

Answered By – rare

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published