Use Windows Certificates with Node.js

  1. If you don’t have the certificate you want to use for the server, probably because you run it locally so you need a self-signed cert like I do, then of course you first have to create it. Follow this guide to do just that. Make sure to specify “localhost” as the DnsName parameter, otherwise it won’t be recognized as belonging to this host. FriendlyName can be whatever you want, and you can change the expiry date if you so desire. Of course, if you already have the cert, skip this step.
  2. Now that the cert is created and stored, you have to navigate to it. Start typing “certificate” in the search box on the task bar, until you see the option “Manage Computer Certificates”. Clicking it will open this window:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shira Rotman

Shira Rotman

3 Followers

I’ve been programming from age 10, love to learn and experiment new techs, very auto-didactic. Looking for a job!