Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


NodeJS + Express.js + SSL?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

NodeJS + Express.js + SSL?

bk133bk133 Member

Was wondering if anyone has an experience setting up a VPS to run nodejs, express.js and then use a StartComm free SSL certificate to do https?

I can't find a tutorial anywhere. Any help would be appreciated.

Comments

  • MuZoMuZo Member

    You can put nginx as reverse proxy for express

  • You can specify the certs in express.js itself or you can do what @MuZo suggested and place them there.

  • @MuZo @outime Trying to do it with just Express, I considered the reverse proxy option. If I can't get it working I'll probably put my domain under cloudflare and enjoy their free wildcard SSL certificate and use that as a "proxy" to my non-ssl server.

  • It's quite straightforward, look at this for instance: http://heyrod.com/snippet/s/node-https-ssl.html

    CloudFlare is your other option indeed if you prefer that.

  • @outime Thanks, I've got it working now. Had to re-write the code to fix a bug.

Sign In or Register to comment.